|
Re: RAM editing, Is this possible in MAME (and if so, how?)
04/24/22 04:58 PM
|
|
|
> For the game Atari Crystal Castles, in the manual, it says if you reset everything, > paid coins stats are never reset. On PDF page 10 (manual page 1-3), under “GAME > OVERVIEW” section, in “GAME PLAYFIELD COLOR CHANGES”, it mentions the castles > changing colors every 100 paid games (which are never reset). > > The paid coins info is kept in the X2212's, at locations 4A & 4B. > > Would it be possible to edit MAME to change the number of paid coins so that you can > see impact on castles changing colors? I really don't want to have to manually > continually rack up 100 credits to see what happens. > > If so, how do you go about doing this?
Run MAME with -debug and you can open the memory viewer and manually poke the bytes e.g. click on 4A, and assuming it's a 16-bit value (given that it says 4A and 4B) type a reasonably large number like 0x5555 as a test - don't use FFFF as it will just overflow back to 0 on the next coin, and values above 7FFF (or FF7F depending on endian) might be considered a negative number depending on how it was programmed (think Super Mario 1, where 127 lives + 1 becomes -128 lives and an instant game over if you die).
On a side note, it would be better if a cheat was made for each color variation rather than poking the RAM in the debugger. Assuming a cheat hasn't already been made for it.
|
|