Cheats: Implement 0x1F/scratchpad write

This commit is contained in:
Connor McLaughlin
2020-09-28 21:18:08 +10:00
parent 15f22c66fd
commit 75734c25c7
2 changed files with 8 additions and 0 deletions

View File

@ -412,6 +412,13 @@ void CheatCode::Apply() const
}
break;
case InstructionCode::ScratchpadWrite16:
{
CPU::SafeWriteMemoryHalfWord(CPU::DCACHE_LOCATION | (inst.address & CPU::DCACHE_OFFSET_MASK), inst.value16);
index++;
}
break;
case InstructionCode::Increment16:
{
u16 value = 0;