Add illegal instruction

This commit is contained in:
Franco Colmenarez 2021-10-12 12:52:04 -05:00
parent bbf6b19957
commit 9bf80459a7

View File

@ -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,
}
}
}