This commit is contained in:
Brian Carroll 2022-11-25 16:53:29 +00:00
parent 2bd67a3292
commit 5f5a535aaf
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
2 changed files with 2 additions and 5 deletions

View file

@ -166,9 +166,6 @@ impl<'a> ExecutionState<'a> {
let offset = self.fetch_immediate_u32(module); let offset = self.fetch_immediate_u32(module);
let value = self.value_stack.pop(); let value = self.value_stack.pop();
let base_addr = self.value_stack.pop_u32(); let base_addr = self.value_stack.pop_u32();
dbg!(base_addr, offset);
let addr = (base_addr + offset) as usize; let addr = (base_addr + offset) as usize;
(addr, value) (addr, value)
} }

View file

@ -506,9 +506,9 @@ fn test_store<'a>(
}); });
let mut state = let mut state =
ExecutionState::for_module(&arena, &module, start_fn_name, is_debug_mode).unwrap(); ExecutionState::for_module(arena, module, start_fn_name, is_debug_mode).unwrap();
while let Action::Continue = state.execute_next_instruction(&module) {} while let Action::Continue = state.execute_next_instruction(module) {}
state.memory state.memory
} }