ft(interpreter): impl short jumps
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user