Page 1 of 1

Accessing register values during cheat?

Posted: Wed Oct 02, 2013 8:05 am
by BlackGreen
Is it possible to access or use registers inside a cheat? I have no problem doing register evaluations in the debug engine with breakpoints and waypoints. I would like to perform a ROM hack only if a register is a certain value.

Example below trying to do a condition based on register val:

Code: Select all

<action condition="A0==0x1234">maincpu.mw@1234=0x9876</action>
Currently, the system will try to evaluate the condition above as "0xA0==0x1234" instead of the register value.

Is this possible?

Thanks.

Re: Accessing register values during cheat?

Posted: Thu Oct 03, 2013 11:43 pm
by Pugsy
I would also like to see debugger features in the cheat expressions but the answer is no, sorry it's not possible.

Even if it was possible it would be of limited use, the cheat poking is frame based so if a game runs at 60Hz it would only run that condition 60 times a second and the likelihood of the A0 register being at the correct value is minimal. Such a feature would only really be of use if the cheat engine was poking at every instruction and that would have a massive impact on performance.

The only way to implement that in a cheat is to write a small routine is assembler in free space in the game and call it when it's needed - its a pain but it would work.

Re: Accessing register values during cheat?

Posted: Fri Oct 04, 2013 1:58 am
by BlackGreen
Thanks Pugsy. I agree it would be a big impact on performance.

At least now I know I'm not crazy :).