For ROM cheats the address you find in the debugger needs to be multiplied by two (or left shifting by 1) as it maps the address holding 16 bits into the ROM address holding 8bits. To keep things simple the ROM cheats I've posted are in the form "maincpu.mw@(166D1*2)=4E00" just to make it simple to look at the code that is being changed in the debugger.
jak_batm.xml
Code: Select all
<mamecheat version="1">
<cheat desc="Infinite Lives">
<script state="run">
<action>maincpu.pw@2099=0008</action>
</script>
</cheat>
<cheat desc="Infinite Energy">
<script state="run">
<action>maincpu.pw@019D=0020</action>
</script>
</cheat>
</mamecheat>
<!-- Cheat file downloaded from http://www.mamecheat.co.uk, see cheat.txt for list of contributors. -->
Code: Select all
<mamecheat version="1">
<cheat desc=" "/>
<cheat desc="1942"/>
<cheat desc="Infinite Lives">
<script state="run">
<action>maincpu.ppw@0012=0006</action>
</script>
</cheat>
<cheat desc="Infinite Loops/Rs">
<script state="run">
<action>maincpu.ppw@0013=0006</action>
</script>
</cheat>
<cheat desc="Invincibility">
<script state="run">
<action>maincpu.mw@(15748*2)=4E00, maincpu.mw@(166D1*2)=4E00</action>
</script>
<script state="off">
<action>maincpu.mw@(15748*2)=4E02, maincpu.mw@(166D1*2)=4E02</action>
</script>
</cheat>
<cheat desc=" "/>
<cheat desc="Commando"/>
<cheat desc="Infinite Lives">
<script state="run">
<action>maincpu.ppw@0509=0005</action>
</script>
</cheat>
<cheat desc="Infinite Grenades">
<script state="run">
<action>maincpu.ppw@050F=0009</action>
</script>
</cheat>
<cheat desc="Invincibility">
<script state="run">
<action>maincpu.mw@(6BF61*2)=BF62, maincpu.mw@(6BF34*2)=BF35, maincpu.mw@(72857*2)=8E00, maincpu.mw@(6B62E*2)=4E00, maincpu.mw@(12504*2)=8E00, maincpu.mw@(112FE*2)=8E00</action> <!-- Bullets, Soldiers, Bombs, Pits, Motorbike, Cannon Balls -->
</script>
<script state="off">
<action>maincpu.mw@(6BF61*2)=BF6F, maincpu.mw@(6BF34*2)=BF6A, maincpu.mw@(72857*2)=8E02, maincpu.mw@(6B62E*2)=4E02,maincpu.mw@(12504*2)=8E02, maincpu.mw@(112FE*2)=8E02</action>
</script>
</cheat>
<cheat desc=" "/>
<cheat desc="Ghosts'n Goblins"/>
<cheat desc="Infinite Time">
<script state="run">
<action>maincpu.ppw@06BE=0257</action>
</script>
</cheat>
<cheat desc="Infinite Lives">
<script state="run">
<action>maincpu.ppw@0693=0007</action>
</script>
</cheat>
<cheat desc="Invincibility"> <comment>Doesn't protect you against water</comment>
<script state="run">
<action>maincpu.mw@(18A08*2)=0E00, maincpu.mw@(18CB9*2)=0E00</action> <!-- Enemy Collisions, Shots -->
</script>
<script state="off">
<action>maincpu.mw@(18A08*2)=0E02, maincpu.mw@(18CB9*2)=0E02</action>
</script>
</cheat>
</mamecheat>
<!-- Cheat file downloaded from http://www.mamecheat.co.uk, see cheat.txt for list of contributors. -->
Code: Select all
<mamecheat version="1">
<cheat desc="Infinite Time">
<script state="run">
<action condition="maincpu.pd@2566 GT 00000001">maincpu.pd@2566=00090009</action>
</script>
</cheat>
<cheat desc="Finish Round Now!">
<script state="on">
<action>maincpu.pd@2566=00000001</action>
</script>
</cheat>
<cheat desc=" "/>
<cheat desc="P1 Infinite Energy">
<script state="run">
<action>maincpu.pw@24F9=00A1</action>
</script>
</cheat>
<cheat desc="P1 Drain All Energy Now!">
<script state="on">
<action>maincpu.pw@24F9=0000</action>
</script>
</cheat>
<cheat desc="P1 Select Character"> <comment>Enable before the round starts</comment>
<parameter>
<item value="0x0000">Johnny Cage</item>
<item value="0x0001">Kano</item>
<item value="0x0002">Raiden</item>
<item value="0x0003">Liu Kang</item>
<item value="0x0004">Scorpion</item>
<item value="0x0005">Sub-Zero</item>
<item value="0x0006">Sonya Blade</item>
<item value="0x0007">#Goro (Buggy!)</item>
<item value="0x0008">#Shang Tsung (Buggy!)</item>
</parameter>
<script state="run">
<action>maincpu.pw@24F2=param</action>
</script>
</cheat>
<cheat desc=" "/>
<cheat desc="P2 Infinite Energy">
<script state="run">
<action>maincpu.pw@2533=00A1</action>
</script>
</cheat>
<cheat desc="P2 Drain All Energy Now!">
<script state="on">
<action>maincpu.pw@2533=0000</action>
</script>
</cheat>
<cheat desc="P2 Select Character"> <comment>Enable before the round starts</comment>
<parameter>
<item value="0x0000">Johnny Cage</item>
<item value="0x0001">Kano</item>
<item value="0x0002">Raiden</item>
<item value="0x0003">Liu Kang</item>
<item value="0x0004">Scorpion</item>
<item value="0x0005">Sub-Zero</item>
<item value="0x0006">Sonya Blade</item>
<item value="0x0007">#Goro</item>
<item value="0x0008">#Shang Tsung</item>
</parameter>
<script state="run">
<action>maincpu.pw@252C=param</action>
</script>
</cheat>
</mamecheat>
<!-- Cheat file downloaded from http://www.mamecheat.co.uk, see cheat.txt for list of contributors. -->
Code: Select all
<mamecheat version="1">
<cheat desc="Infinite Lives">
<script state="run">
<action>maincpu.pw@1FE6=0008</action>
</script>
</cheat>
</mamecheat>
<!-- Cheat file downloaded from http://www.mamecheat.co.uk, see cheat.txt for list of contributors. -->