ft(interpreter): impl mov

This commit is contained in:
2025-06-11 16:49:49 +09:00
parent 269c4cc54b
commit e5e0edd713
4 changed files with 65 additions and 5 deletions

View File

@@ -95,6 +95,18 @@ impl ImmediateOperand {
}
}
impl From<Byte> for ImmediateOperand {
fn from(value: Byte) -> Self {
Self::Byte(value)
}
}
impl From<Word> for ImmediateOperand {
fn from(value: Word) -> Self {
Self::Word(value)
}
}
impl Into<usize> for ImmediateOperand {
fn into(self) -> usize {
match self {