chore(interpreter): fix small bugs
This commit is contained in:
@@ -151,7 +151,7 @@ impl From<usize> for ImmediateOperand {
|
||||
impl Into<Word> for ImmediateOperand {
|
||||
fn into(self) -> u16 {
|
||||
match self {
|
||||
ImmediateOperand::Byte(_) => self.sign_extend().into(),
|
||||
ImmediateOperand::Byte(b) => b as Word,
|
||||
ImmediateOperand::Word(w) => w,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user