wip istore

This commit is contained in:
Sander Hautvast 2023-10-05 18:38:05 +02:00
parent 3540f48f21
commit d4ea4aed58

View file

@ -237,9 +237,9 @@ impl Vm {
// let index = self.local_stack().pop()?; // let index = self.local_stack().pop()?;
// let array_ref = self.local_stack().pop()?; // let array_ref = self.local_stack().pop()?;
} }
ISTORE =>{ ISTORE => unsafe{
let index = read_u8(&code.opcodes, pc); let index = read_u8(&code.opcodes, pc);
let value = self.local_stack().pop()?; let value = &*(self.local_stack().pop()?.get());
if let Value::I32(int) = value { if let Value::I32(int) = value {
// TODO local vars // TODO local vars
} }