mirror of
https://github.com/FranLMSP/rmg-001.git
synced 2024-11-23 10:12:11 +00:00
Add illegal instruction
This commit is contained in:
parent
bbf6b19957
commit
9bf80459a7
@ -186,6 +186,7 @@ pub enum CpuOpcode {
|
|||||||
RST,
|
RST,
|
||||||
RET,
|
RET,
|
||||||
RETI,
|
RETI,
|
||||||
|
IllegalInstruction,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -450,7 +451,7 @@ impl CPU {
|
|||||||
0x76 => CpuOpcode::HALT,
|
0x76 => CpuOpcode::HALT,
|
||||||
0x10 => CpuOpcode::STOP,
|
0x10 => CpuOpcode::STOP,
|
||||||
0x00 => CpuOpcode::NOP,
|
0x00 => CpuOpcode::NOP,
|
||||||
_ => CpuOpcode::NOP,
|
_ => CpuOpcode::IllegalInstruction,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user