The thing is that I cannot write a cheat to read that address with either maincpu.pb or maincpu.rb. In maincpu.pb it just reads a different value which is always 0 and with rb it reads 0xff. It's like the value being read comes from a different place.
If you examine the memory viewer of the mame debugger and choose the memory/:maincpu/0/00200000-0028ffff (from the dropdown you must scroll up to the last region and then up a little) and write down the 8021d in the offset textbox you can see the value changing when you insert credits (I recall that the address was not exactly 8021d but something like 8021b or 8021c. Well the thing is somewhat close).
Then what I did is to write an output cheat to print the suspicious addresses values
Code: Select all
<cheat desc="Watch coin address">
<script state="run">
<output format="%02X %02X %02X">
<argument>maincpu.rb@28021b</argument>
<argument>maincpu.rb@28021c</argument>
<argument>maincpu.rb@28021d</argument>
</output>
</script>
</cheat>
Anyone knows how can I write the code to show the current credits inserted based on this information?. The credits inserted seem to be stored in nvram. Anyone have fiddled with cheats reading values from nvram or their respective RAM mapping?
I hope anyone can give me a shed of light.
Help is greatly appreciated!
Greets!