1
0
Fork 0
forked from koniifer/ableos
This commit is contained in:
able 2023-11-02 14:12:10 -05:00
parent 631e1dc288
commit bda8659747
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ impl hbvm::mem::Memory for Memory {
source: *const u8, source: *const u8,
count: usize, count: usize,
) -> Result<(), hbvm::mem::StoreError> { ) -> Result<(), hbvm::mem::StoreError> {
log::info!("Storing memory"); // log::info!("Storing memory");
core::ptr::copy(source, addr.get() as *mut u8, count); core::ptr::copy(source, addr.get() as *mut u8, count);
Ok(()) Ok(())

View file

@ -15,7 +15,7 @@ fn main(){
label("start"); label("start");
// store from a register to a local address // store from a register to a local address
st(r1, r2, 0xFFFF8000C0000000, 1); st(r1, r2, 0xFFFF8000C0000000, 1);
addi64(r2, r2, 1); // addi64(r2, r2, 1);
jltu(r2, r3, "start"); jltu(r2, r3, "start");