What are some of your methods you use to find invincible cheats?
I'm having trouble just duplicating some of the ones that were done already.
How do you find or search for an address of interest as a starting point for invincible cheats?
I know how to find infinite lives and energy and stuff like that, just having problems locating invincible stuff.
Thanks!
This is the method I used to use.
Start a search with 'ci' or equivalent
Whilst you are still alive do a load of 'cn eq' searches whilst moving around.
Then just before you about to get hit...start using the debugger 'gv' command to advance through a frame at a time. As soon as it's obvious that your character has been hit (eg explosion started) perform a 'cn ne' search. Repeat this till you have only a few addresses, if you have too many addresses make a note of just the ones with a single bit change.
Now put a WP W on all the addresses of interest
Now type 'TRACE filename' and play the game until you are hit and the first watchpoint is hit (if you hit watchpoints before you get hit - just press F12 repeatly, if there are too many WPs being hit just refine those watchpoints with commands like WP 3456,1,w,wpdata!=00)
Once you've hit the first watchpoint after death (ideally this should happen just before the sprite changes into death mode), type TRACE OFF and the open the TRACE file that has been dumped in the MAME dir with a suitable text editor.
Now just trace you way from the bottom of the TRACE file and BP on interesting addresses and see what happens. This can take 5 minutes or 20 hours depending on your assembler skills and the game code.