Add decoding of INT and IRET instructions

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-03-06 12:52:46 -05:00
parent 34b1147fe6
commit fbe2c529af

View File

@@ -121,8 +121,8 @@ impl<T> MemCursor<T>
RET => Ok(Inst::Ret),
PUSH => source!(Push),
POP => dest!(Pop),
INT => { todo!("INT decode") },
IRET => { todo!("IRET decode") },
INT => source_source!(Int),
IRET => Ok(Inst::IRet),
MOV => dest_source!(Mov),
HALT => Ok(Inst::Halt),
NOP => Ok(Inst::Nop),