mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
Cheats: Implement 0x1F/scratchpad write
This commit is contained in:
parent
15f22c66fd
commit
75734c25c7
|
@ -412,6 +412,13 @@ void CheatCode::Apply() const
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case InstructionCode::ScratchpadWrite16:
|
||||||
|
{
|
||||||
|
CPU::SafeWriteMemoryHalfWord(CPU::DCACHE_LOCATION | (inst.address & CPU::DCACHE_OFFSET_MASK), inst.value16);
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case InstructionCode::Increment16:
|
case InstructionCode::Increment16:
|
||||||
{
|
{
|
||||||
u16 value = 0;
|
u16 value = 0;
|
||||||
|
|
|
@ -12,6 +12,7 @@ struct CheatCode
|
||||||
Nop = 0x00,
|
Nop = 0x00,
|
||||||
ConstantWrite8 = 0x30,
|
ConstantWrite8 = 0x30,
|
||||||
ConstantWrite16 = 0x80,
|
ConstantWrite16 = 0x80,
|
||||||
|
ScratchpadWrite16 = 0x1F,
|
||||||
Increment16 = 0x10,
|
Increment16 = 0x10,
|
||||||
Decrement16 = 0x11,
|
Decrement16 = 0x11,
|
||||||
Increment8 = 0x20,
|
Increment8 = 0x20,
|
||||||
|
|
Loading…
Reference in a new issue