ft(interpreter): impl short jumps

This commit is contained in:
2025-06-11 15:44:42 +09:00
parent a4dc420d60
commit c9bf8fdc46
6 changed files with 160 additions and 57 deletions

View File

@@ -95,6 +95,15 @@ impl ImmediateOperand {
}
}
impl Into<usize> for ImmediateOperand {
fn into(self) -> usize {
match self {
ImmediateOperand::Byte(b) => b as usize,
ImmediateOperand::Word(w) => w as usize,
}
}
}
impl Add for ImmediateOperand {
type Output = Self;