[rastan+] Built-in flags
Posted: Wed Aug 22, 2007 6:39 am
There are 2 flags in RAM that were used by coders to test the game, and they left the code for them (even if they are originally filled by an address in ROM area which "blanks" them) !
The first one gives you infinite energy ... I'm not convinced it is useful as we already have such cheat, but it's for documentation purpose ...
But the second one gives you better invulnerability than your ROM cheat as you can only die if you fall into water (but you can walk on fire) ...
Here are the codes :
Notice the "Restore Previous Value" type bit (for RAM cheats !) which is far better to easily toggle the cheat ON/OFF ... BTW, flags cheats in your database for other games could also use this useful feature of the cheat engine (especially when you map the cheat to a key) ...
Last thing to know is that the ROM area where this flags come from is the same as the one to allow you to select the starting level ! Here are my notes from the rastan.c driver I've submitted to MAME Devs :
I hope that this helps ... Please let me know if you intend to add such things ...
Steph from The Ultimate Patchers 
The first one gives you infinite energy ... I'm not convinced it is useful as we already have such cheat, but it's for documentation purpose ...
But the second one gives you better invulnerability than your ROM cheat as you can only die if you fall into water (but you can walk on fire) ...
Here are the codes :
Code: Select all
:rastan:00900000:10C040:00000040:FFFFFFFF:Invincibility (flag)
:rastan:00900000:10C044:00000080:FFFFFFFF:Infinite Energy (flag)
Code: Select all
:rastanu:00900000:10C040:00000040:FFFFFFFF:Invincibility (flag)
:rastanu:00900000:10C044:00000080:FFFFFFFF:Infinite Energy (flag)
Code: Select all
:rastanu2:00900000:10C040:00000040:FFFFFFFF:Invincibility (flag)
:rastanu2:00900000:10C044:00000080:FFFFFFFF:Infinite Energy (flag)
Code: Select all
:rastsag1:00900000:10C040:00000040:FFFFFFFF:Invincibility (flag)
:rastsag1:00900000:10C044:00000080:FFFFFFFF:Infinite Energy (flag)
Code: Select all
:rastsaga:00900000:10C040:00000040:FFFFFFFF:Invincibility (flag)
:rastsaga:00900000:10C044:00000080:FFFFFFFF:Infinite Energy (flag)
Last thing to know is that the ROM area where this flags come from is the same as the one to allow you to select the starting level ! Here are my notes from the rastan.c driver I've submitted to MAME Devs :
Code: Select all
- There was sort of debug address at 0x05ff9e.w ('rastan' and 'rastanu') or 0x05fffc ('rastanu2' and 'rastsag*') in ROM area :
* bits 0 to 2 determine the level (0 to 5)
* bits 3 and 5 determine where you start at the level !
. OFF & OFF : part 1
. OFF & ON : part 2
. ON & OFF : part 3 (boss)
. ON & ON : IMPOSSIBLE !
* bit 4 doesn't seem to have any effect
* bit 6 is the invulnerability flag (stored at 0x10c040.w = $40,A5)
surprisingly, it doesn't work when you fall in the water
* bit 7 is the infinite energy flag (stored at 0x10c044.w = $44,A5)
Be aware that the bits are active low !

