fix(interpreter): typo selected wrong byte

This commit is contained in:
2025-07-08 09:35:28 +09:00
parent ecbe478dcd
commit 0a1fd0e4c6
2 changed files with 3 additions and 2 deletions

View File

@@ -59,6 +59,6 @@ impl Memory {
.ok_or(InterpreterError::MemoryOutOfBound(addr))?
.to_owned();
log::debug!("Read raw byte {b1:#04x} and {b2:#04x}, starting at addr {addr:#04x}");
Ok(Word::from_be_bytes([b2, b1]))
Ok(Word::from_le_bytes([b1, b2]))
}
}