Needed for the Guide:
I need to know on a technical detail (ie. on the same level as other cheats) how an RAC determines the address from a base and an offset, and the significance of the different parts of an RAC.
How to Relative Address Cheats work?
How to Relative Address Cheats work?
kelvSYC's Guide to the Cheat Engine - http://members.shaw.ca/kelvsyc/cheatguide.html
The New Move List Cheat Collection - http://mamecheat.co.uk/forums/viewtopic.php?p=6469
Underscore Command - What better game is there?
The New Move List Cheat Collection - http://mamecheat.co.uk/forums/viewtopic.php?p=6469
Underscore Command - What better game is there?
The cheat engine calculates the effective address by reading a value (usually 32 bits, but this can be changed in the cheat) from memory. The displacement/offset is then added to the read value, which becomes the effective address for the cheat.
Pseudocode again:
Pseudocode again:
Code: Select all
UInt32 effectiveAddress;
effectiveAddress = Read(action->cpu, action->address, action->addressBytes);
effectiveAddress = effectiveAddress + action->offset;
return Read(action->cpu, effectiveAddress, action->bytes);