mirror of
https://github.com/FranLMSP/rmg-001.git
synced 2026-08-03 08:40:04 -04:00
Add illegal instruction
This commit is contained in:
+2
-1
@@ -186,6 +186,7 @@ pub enum CpuOpcode {
|
||||
RST,
|
||||
RET,
|
||||
RETI,
|
||||
IllegalInstruction,
|
||||
}
|
||||
|
||||
|
||||
@@ -450,7 +451,7 @@ impl CPU {
|
||||
0x76 => CpuOpcode::HALT,
|
||||
0x10 => CpuOpcode::STOP,
|
||||
0x00 => CpuOpcode::NOP,
|
||||
_ => CpuOpcode::NOP,
|
||||
_ => CpuOpcode::IllegalInstruction,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user