pull/11/head
able 2023-11-02 14:12:10 -05:00
parent 24c52b5c1d
commit e3a8e2e76e
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");