fix(interpreter): wrong le byte order on pop
This commit is contained in:
@@ -38,7 +38,7 @@ impl Memory {
|
||||
.get((idx + 1) as usize)
|
||||
.ok_or(InterpreterError::MemoryOutOfBound(idx))?
|
||||
.to_owned();
|
||||
Ok(Word::from_be_bytes([b1, b2]))
|
||||
Ok(Word::from_be_bytes([b2, b1]))
|
||||
}
|
||||
|
||||
/// Write an [`ImmediateOperand`] to a memory location indexed by a [`MemoryIndex`].
|
||||
|
||||
Reference in New Issue
Block a user