Cheats: Ignore 00 code

This commit is contained in:
Connor McLaughlin 2020-09-28 20:09:14 +10:00
parent 4e9135cd57
commit 6961e645c6
2 changed files with 7 additions and 0 deletions

View File

@ -392,6 +392,12 @@ void CheatCode::Apply() const
const Instruction& inst = instructions[index];
switch (inst.code)
{
case InstructionCode::Nop:
{
index++;
}
break;
case InstructionCode::ConstantWrite8:
{
CPU::SafeWriteMemoryByte(inst.address, inst.value8);

View File

@ -9,6 +9,7 @@ struct CheatCode
{
enum class InstructionCode : u8
{
Nop = 0x00,
ConstantWrite8 = 0x30,
ConstantWrite16 = 0x80,
Increment16 = 0x10,