diff --git a/docs/features/cheats.md b/docs/features/cheats.md index 5ba49f5bc..5f5ec10e0 100644 --- a/docs/features/cheats.md +++ b/docs/features/cheats.md @@ -328,7 +328,6 @@ C0TcS2Ra aaaaaaaa C0TcS3Rr C0TcS400 VVVVVVVV (VVVVVVVV) C0TcS5X0 -C0Tcr6Ma aaaaaaaa VVVVVVVV (VVVVVVVV) ``` + T: Width of memory write (1, 2, 4, or 8 bytes). @@ -349,7 +348,6 @@ C0Tcr6Ma aaaaaaaa VVVVVVVV (VVVVVVVV) + 3: Register + Offset Register + 4: Static Value + 5: Other Register -+ 6: Compare [Memory Base + Offset Register + Relative Offset] against Static Value #### Conditions + 1: > diff --git a/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp b/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp index be3cfd246..8945205fa 100644 --- a/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp +++ b/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp @@ -235,13 +235,6 @@ namespace ams::dmnt::cheat::impl { this->LogToDebugFile("A Reg Idx: %x\n", opcode->begin_reg_cond.addr_reg_index); this->LogToDebugFile("O Reg Idx: %x\n", opcode->begin_reg_cond.ofs_reg_index); break; - case CompareRegisterValueType_OffsetValue: - this->LogToDebugFile("Comp Type: Offset Value\n"); - this->LogToDebugFile("Mem Type: %x\n", opcode->begin_reg_cond.mem_type); - this->LogToDebugFile("O Reg Idx: %x\n", opcode->begin_reg_cond.ofs_reg_index); - this->LogToDebugFile("Rel Addr: %lx\n", opcode->begin_reg_cond.rel_address); - this->LogToDebugFile("Value: %lx\n", opcode->begin_reg_cond.value.bit64); - break; } break; case CheatVmOpcodeType_SaveRestoreRegister: @@ -551,7 +544,6 @@ namespace ams::dmnt::cheat::impl { /* C0TcS3Rr */ /* C0TcS400 VVVVVVVV (VVVVVVVV) */ /* C0TcS5X0 */ - /* C0Tcr6Ma aaaaaaaa VVVVVVVV (VVVVVVVV) */ /* C0 = opcode 0xC0 */ /* T = bit width */ /* c = condition type. */ @@ -592,12 +584,6 @@ namespace ams::dmnt::cheat::impl { opcode.begin_reg_cond.addr_reg_index = ((first_dword >> 4) & 0xF); opcode.begin_reg_cond.ofs_reg_index = (first_dword & 0xF); break; - case CompareRegisterValueType_OffsetValue: - opcode.begin_reg_cond.mem_type = (MemoryAccessType)((first_dword >> 4) & 0xF); - opcode.begin_reg_cond.rel_address = (((u64)(first_dword & 0xF) << 32ul) | ((u64)GetNextDword())); - opcode.begin_reg_cond.ofs_reg_index = ((first_dword >> 12) & 0xF); - opcode.begin_reg_cond.value = GetNextVmInt(opcode.begin_reg_cond.bit_width); - break; } } break; @@ -1208,10 +1194,6 @@ namespace ams::dmnt::cheat::impl { case CompareRegisterValueType_RegisterOfsReg: cond_address = m_registers[cur_opcode.begin_reg_cond.addr_reg_index] + m_registers[cur_opcode.begin_reg_cond.ofs_reg_index]; break; - case CompareRegisterValueType_OffsetValue: - cond_address = GetCheatProcessAddress(metadata, cur_opcode.begin_reg_cond.mem_type, cur_opcode.begin_reg_cond.rel_address + m_registers[cur_opcode.begin_reg_cond.ofs_reg_index]); - src_value = GetVmInt(cur_opcode.begin_reg_cond.value, cur_opcode.begin_reg_cond.bit_width); - break; default: break; } diff --git a/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.hpp b/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.hpp index 530dc490b..d9688938e 100644 --- a/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.hpp +++ b/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.hpp @@ -108,7 +108,6 @@ namespace ams::dmnt::cheat::impl { CompareRegisterValueType_RegisterOfsReg = 3, CompareRegisterValueType_StaticValue = 4, CompareRegisterValueType_OtherRegister = 5, - CompareRegisterValueType_OffsetValue = 6, }; enum SaveRestoreRegisterOpType : u32 {