RAM codes collection. These are common codes between two sets.
Code: Select all
<mamecheat version="1">
<cheat desc="Infinite Continues">
<script state="run">
<action>maincpu.pb@FFFF91 = 09</action>
</script>
</cheat>
<cheat desc="Infinite Lives">
<script state="run">
<action>maincpu.pb@FFFF39 = 62</action>
</script>
</cheat>
<cheat desc="Infinite Energy">
<script state="run">
<action>maincpu.pd@FFFF26 = 00400040</action>
</script>
</cheat>
<cheat desc="Infinite Burner">
<script state="run">
<action>maincpu.pb@FFF0DF = 00</action> <!-- flag for no burner in mission 4 -->
<action>maincpu.pb@FFFF2B = 40</action>
</script>
</cheat>
<cheat desc="Invincibility">
<script state="run">
<action>maincpu.pb@FFD1F0 |= 02</action> <!-- flag -->
<action>maincpu.pb@FFD1F1 = 02</action> <!-- timer -->
</script>
</cheat>
<cheat desc="Always Have All Weapons">
<script state="run">
<action>maincpu.pb@FFFF2E |= 01</action> <!-- shot -->
<action>maincpu.pb@FFFF30 |= 01</action> <!-- super -->
<action>maincpu.pb@FFFF32 |= 01</action> <!-- r.l. -->
<action>maincpu.pb@FFFF34 |= 01</action> <!-- p.c. -->
<action>maincpu.pb@FFFF36 |= 01</action> <!-- fire -->
</script>
</cheat>
<cheat desc="Player State (test)">
<parameter>
<item value="0xDF">Normal Police</item>
<item value="0x20">Cyber Police</item>
</parameter>
<script state="run">
<action condition="param == DF">maincpu.pb@FFD1E2 &= param</action>
<action condition="param == 20">maincpu.pb@FFD1E2 |= param</action>
</script>
</cheat>
<cheat desc="Starting Mission">
<comment>reset the game to enable selected mission</comment>
<parameter>
<item value="0x00">Mission 1</item>
<item value="0x02">Mission 2</item>
<item value="0x04">Mission 3</item>
<item value="0x06">Mission 4</item>
<item value="0x08">Mission 5</item>
<item value="0x0A">Mission 6</item>
<item value="0x0C">Mission 7</item>
<item value="0x0E">Mission 8</item>
</parameter>
<script state="run">
<action condition="maincpu.pb@FFFF2D == 00">maincpu.pb@FFFF2D = param</action>
</script>
</cheat>
</mamecheat>
- "Always Have All weapons" : You have all weapons with "Normal Police" but can't select (weapon select button has no response).
- "Player State" : Test code. Wrong color when you set as "Cyber Police" in mission 1 and 2 (or "normal police" after mission 3).
- "Starting Mission" : You need to reset the game after select mission.
megadriv/eswat.xml
Code: Select all
<!-- ESWAT - City Under Siege (Europe, USA, rev. A) -->
<mamecheat version="1">
<cheat desc="no hit">
<script state="on">
<action>mdslot:cart:rom.mb@02106 = 60</action> <!-- trap (mission 2) -->
<action>mdslot:cart:rom.mb@07BCC = 60</action> <!-- objects -->
<action>mdslot:cart:rom.mb@32BB1 = 0A</action> <!-- trap (mission 4) -->
</script>
<script state="off">
<action>mdslot:cart:rom.mb@02106 = 66</action>
<action>mdslot:cart:rom.mb@07BCC = 66</action>
<action>mdslot:cart:rom.mb@32BB1 = 0C</action>
</script>
</cheat>
<cheat desc="rapid fire">
<script state="on">
<action>mdslot:cart:rom.mb@07C3 = 98</action> <!-- cyber police (p.c.) -->
<action>mdslot:cart:rom.mb@0DE1 = 98</action> <!-- police (jump) -->
<action>mdslot:cart:rom.mb@0F9F = 02</action> <!-- police (common) -->
<action>mdslot:cart:rom.mb@0FE9 = 02</action> <!-- police (crouch) -->
<action>mdslot:cart:rom.mb@1073 = 02</action> <!-- police (crouch) -->
<action>mdslot:cart:rom.mb@1C59 = 98</action> <!-- cyber police (shot) -->
<action>mdslot:cart:rom.mb@1DAD = 02</action> <!-- police (common) -->
<action>mdslot:cart:rom.mb@1D0D = 02</action> <!-- cyber police (super) -->
</script>
<script state="off">
<action>mdslot:cart:rom.mb@07C3 = 99</action>
<action>mdslot:cart:rom.mb@0DE1 = 99</action>
<action>mdslot:cart:rom.mb@0F9F = 07</action>
<action>mdslot:cart:rom.mb@0FE9 = 06</action>
<action>mdslot:cart:rom.mb@1073 = 08</action>
<action>mdslot:cart:rom.mb@1C59 = 99</action>
<action>mdslot:cart:rom.mb@1DAD = 08</action>
<action>mdslot:cart:rom.mb@1D0D = 10</action>
</script>
</cheat>
<cheat desc="no burner decrement">
<script state="on">
<action>mdslot:cart:rom.mw@00B70 = 4E71</action> <!-- flag check (mission 4) -->
<action>mdslot:cart:rom.mw@026D8 = 4E71</action> <!-- flag check (mission 4) -->
<action>mdslot:cart:rom.mw@0274C = 7E00</action> <!-- decrement value -->
<action>mdslot:cart:rom.mw@2AB1E = 7E00</action> <!-- decrement value (mission 4 start) -->
</script>
<script state="off">
<action>mdslot:cart:rom.mw@00B70 = 660E</action>
<action>mdslot:cart:rom.mw@026D8 = 6638</action>
<action>mdslot:cart:rom.mw@0274C = 7EFF</action>
<action>mdslot:cart:rom.mw@2AB1E = 7EFF</action>
</script>
</cheat>
<cheat desc="sound test mode">
<!-- music : 0x01 - 0x0c, sfx : 0x10 - 0x3d, voice : 0x40 - 0x43 -->
<!-- you can't stop voices by sound stop button -->
<comment>set "skip rom check" then reset the game (F3)</comment>
<script state="on">
<action>mdslot:cart:rom.mw@063F4 = 6050 </action> <!-- disable sega logo -->
<action>mdslot:cart:rom.md@06462 = 00017220 </action>
<action>mdslot:cart:rom.mq@17220 = 41F880004EB86E4C</action>
<action>mdslot:cart:rom.mq@17228 = 1438F0050C020004</action>
<action>mdslot:cart:rom.mq@17230 = 660253100C020008</action>
<action>mdslot:cart:rom.mq@17238 = 660252100C020002</action>
<action>mdslot:cart:rom.mq@17240 = 6604041000100C02</action>
<action>mdslot:cart:rom.mq@17248 = 0001660406100010</action>
<action>mdslot:cart:rom.mq@17250 = 0C02004066204EB8</action>
<action>mdslot:cart:rom.mq@17258 = 6CF210100C000040</action>
<action>mdslot:cart:rom.mq@17260 = 6C0A000000804EB8</action>
<action>mdslot:cart:rom.mq@17268 = 6C72600A04000040</action>
<action>mdslot:cart:rom.mq@17270 = 12004EB86DC20C02</action>
<action>mdslot:cart:rom.mq@17278 = 001066044EB86D16</action>
<action>mdslot:cart:rom.mq@17280 = 60A2FFFFFFFFFFFF</action>
<!--
17220 | 41F8 8000 : lea $8000.w, A0 // sound code address ($ff8000)
17224 | 4EB8 6E4C : jsr $6e4c.w // wait interrupt
17228 | 1438 F005 : move.b $f005.w, D2 // read input ($fff005)
1722C | 0C02 0004 : cmpi.b #$4, D2
17230 | 6602 : bne $17234
17232 | 5310 : subq.b #1, (A0) // decrease code -01
17234 | 0C02 0008 : cmpi.b #$8, D2
17238 | 6602 : bne $1723c
1723A | 5210 : addq.b #1, (A0) // increase code +01
1723C | 0C02 0002 : cmpi.b #$2, D2
17240 | 6604 : bne $17246
17242 | 0410 0010 : subi.b #$10, (A0) // decraese code -10
17246 | 0C02 0001 : cmpi.b #$1, D2
1724A | 6604 : bne $17250
1724C | 0610 0010 : addi.b #$10, (A0) // increase code +10
17250 | 0C02 0040 : cmpi.b #$40, D2
17254 | 6620 : bne $17276
17256 | 4EB8 6CF2 : jsr $6cf2.w // play sound
1725A | 1010 : move.b (A0), D0
1725C | 0C00 0040 : cmpi.b #$40, D0
17260 | 6C0A : bge $1726c
17262 | 0000 0080 : ori.b #$80, D0 // music, sfx
17266 | 4EB8 6C72 : jsr $6c72.w
1726A | 600A : bra $17276
1726C | 0400 0040 : subi.b #$40, D0 // voice
17270 | 1200 : move.b D0, D1
17272 | 4EB8 6DC2 : jsr $6dc2.w
17276 | 0C02 0010 : cmpi.b #$10, D2
1727A | 6604 : bne $17280
1727C | 4EB8 6D16 : jsr $6d16.w // sound stop
17280 | 60A2 : bra $17224
-->
</script>
<script state="run">
<output format="----- sound test mode -----" line="10" align="center" />
<output format="left : decrease code -01" line="11" align="center" />
<output format="right : increase code +01" line="12" align="center" />
<output format="down : decrease code -10" line="13" align="center" />
<output format="up : increase code +10" line="14" align="center" />
<output format="button 1 : play sound" line="15" align="center" />
<output format="button 2 : stop sound" line="16" align="center" />
<output format="----------------------------" line="17" align="center" />
<output format="<< sound code %02X >>" line="19" align="center" >
<argument>maincpu.pb@FF8000</argument>
</output>
</script>
<script state="off">
<action>mdslot:cart:rom.mw@063F4 = 6666 </action>
<action>mdslot:cart:rom.md@06462 = 0002B164 </action>
<action>mdslot:cart:rom.mq@17220 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17228 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17230 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17238 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17240 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17248 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17250 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17258 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17260 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17268 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17270 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17278 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17280 = FFFFFFFFFFFFFFFF</action>
</script>
</cheat>
<cheat desc="skip rom check">
<script state="on">
<action>mdslot:cart:rom.mw@0336 = 6014</action>
</script>
<script state="off">
<action>mdslot:cart:rom.mw@0336 = 2011</action>
</script>
</cheat>
</mamecheat>
Code: Select all
<!-- Cyber Police ESWAT (Japan, rev. 0) -->
<mamecheat version="1">
<cheat desc="no hit">
<script state="on">
<action>mdslot:cart:rom.mb@020E2 = 60</action> <!-- trap (mission 2) -->
<action>mdslot:cart:rom.mb@0798A = 60</action> <!-- objects -->
<action>mdslot:cart:rom.mb@32741 = 0A</action> <!-- trap (mission 4) -->
</script>
<script state="off">
<action>mdslot:cart:rom.mb@020E2 = 66</action>
<action>mdslot:cart:rom.mb@0798A = 66</action>
<action>mdslot:cart:rom.mb@32741 = 0C</action>
</script>
</cheat>
<cheat desc="rapid fire">
<script state="on">
<action>mdslot:cart:rom.mb@07B5 = 98</action> <!-- cyber police (p.c.) -->
<action>mdslot:cart:rom.mb@0DC7 = 98</action> <!-- police (jump) -->
<action>mdslot:cart:rom.mb@0F85 = 02</action> <!-- police (common) -->
<action>mdslot:cart:rom.mb@0FCF = 02</action> <!-- police (crouch) -->
<action>mdslot:cart:rom.mb@1059 = 02</action> <!-- police (crouch) -->
<action>mdslot:cart:rom.mb@1C41 = 98</action> <!-- cyber police (shot) -->
<action>mdslot:cart:rom.mb@1D83 = 02</action> <!-- police (common) -->
<action>mdslot:cart:rom.mb@1CE3 = 02</action> <!-- cyber police (super) -->
</script>
<script state="off">
<action>mdslot:cart:rom.mb@07B5 = 99</action>
<action>mdslot:cart:rom.mb@0DC7 = 99</action>
<action>mdslot:cart:rom.mb@0F85 = 07</action>
<action>mdslot:cart:rom.mb@0FCF = 06</action>
<action>mdslot:cart:rom.mb@1059 = 08</action>
<action>mdslot:cart:rom.mb@1C41 = 99</action>
<action>mdslot:cart:rom.mb@1D83 = 08</action>
<action>mdslot:cart:rom.mb@1CE3 = 10</action>
</script>
</cheat>
<cheat desc="no burner decrement">
<script state="on">
<action>mdslot:cart:rom.mw@00B62 = 4E71</action> <!-- flag check (mission 4) -->
<action>mdslot:cart:rom.mw@0264E = 4E71</action> <!-- flag check (mission 4) -->
<action>mdslot:cart:rom.mw@026C2 = 7E00</action> <!-- decrement value -->
<action>mdslot:cart:rom.mw@2AB14 = 7E00</action> <!-- decrement value (mission 4 start) -->
</script>
<script state="off">
<action>mdslot:cart:rom.mw@00B62 = 660E</action>
<action>mdslot:cart:rom.mw@0264E = 6638</action>
<action>mdslot:cart:rom.mw@026C2 = 7EFF</action>
<action>mdslot:cart:rom.mw@2AB14 = 7EFF</action>
</script>
</cheat>
<cheat desc="sound test mode">
<!-- music : 0x01 - 0x0c, sfx : 0x10 - 0x3d, voice : 0x40 - 0x43 -->
<!-- you can't stop voices by sound stop button -->
<comment>set "skip rom check" then reset the game (F3)</comment>
<script state="on">
<action>mdslot:cart:rom.mw@0631E = 603C </action> <!-- disable sega logo -->
<action>mdslot:cart:rom.md@0636A = 00017220 </action>
<action>mdslot:cart:rom.mq@17220 = 41F880004EB90002</action>
<action>mdslot:cart:rom.mq@17228 = CA541438F0050C02</action>
<action>mdslot:cart:rom.mq@17230 = 0004660253100C02</action>
<action>mdslot:cart:rom.mq@17238 = 0008660252100C02</action>
<action>mdslot:cart:rom.mq@17240 = 0002660404100010</action>
<action>mdslot:cart:rom.mq@17248 = 0C02000166040610</action>
<action>mdslot:cart:rom.mq@17250 = 00100C0200406620</action>
<action>mdslot:cart:rom.mq@17258 = 4EB86ABA10100C00</action>
<action>mdslot:cart:rom.mq@17260 = 00406C0A00000080</action>
<action>mdslot:cart:rom.mq@17268 = 4EB86A3A600A0400</action>
<action>mdslot:cart:rom.mq@17270 = 004012004EB86B8A</action>
<action>mdslot:cart:rom.mq@17278 = 0C02001066044EB8</action>
<action>mdslot:cart:rom.mq@17280 = 6ADE60A0FFFFFFFF</action>
<!--
17220 | 41F8 8000 : lea $8000.w, A0 // sound code address ($ff8000)
17224 | 4EB9 0002 CA54 : jsr $2ca54.l // wait interrupt
1722A | 1438 F005 : move.b $f005.w, D2 // read input ($fff005)
1722E | 0C02 0004 : cmpi.b #$4, D2
17232 | 6602 : bne $17236
17234 | 5310 : subq.b #1, (A0) // decrease code -01
17236 | 0C02 0008 : cmpi.b #$8, D2
1723A | 6602 : bne $1723e
1723C | 5210 : addq.b #1, (A0) // increase code +01
1723E | 0C02 0002 : cmpi.b #$2, D2
17242 | 6604 : bne $17248
17244 | 0410 0010 : subi.b #$10, (A0) // decraese code -10
17248 | 0C02 0001 : cmpi.b #$1, D2
1724C | 6604 : bne $17252
1724E | 0610 0010 : addi.b #$10, (A0) // increase code +10
17252 | 0C02 0040 : cmpi.b #$40, D2
17256 | 6620 : bne $17278
17258 | 4EB8 6ABA : jsr $6aba.w // play sound
1725C | 1010 : move.b (A0), D0
1725E | 0C00 0040 : cmpi.b #$40, D0
17262 | 6C0A : bge $1726e
17264 | 0000 0080 : ori.b #$80, D0 // music, sfx
17268 | 4EB8 6A3A : jsr $6a3a.w
1726C | 600A : bra $17278
1726E | 0400 0040 : subi.b #$40, D0 // voice
17272 | 1200 : move.b D0, D1
17274 | 4EB8 6B8A : jsr $6b8a.w
17278 | 0C02 0010 : cmpi.b #$10, D2
1727C | 6604 : bne $17282
1727E | 4EB8 6ADE : jsr $6ade.w // sound stop
17282 | 60A0 : bra $17224
-->
</script>
<script state="run">
<output format="----- sound test mode -----" line="10" align="center" />
<output format="left : decrease code -01" line="11" align="center" />
<output format="right : increase code +01" line="12" align="center" />
<output format="down : decrease code -10" line="13" align="center" />
<output format="up : increase code +10" line="14" align="center" />
<output format="button 1 : play sound" line="15" align="center" />
<output format="button 2 : stop sound" line="16" align="center" />
<output format="----------------------------" line="17" align="center" />
<output format="<< sound code %02X >>" line="19" align="center" >
<argument>maincpu.pb@FF8000</argument>
</output>
</script>
<script state="off">
<action>mdslot:cart:rom.mw@0631E = 6644 </action>
<action>mdslot:cart:rom.md@0636A = 0002B152 </action>
<action>mdslot:cart:rom.mq@17220 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17228 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17230 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17238 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17240 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17248 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17250 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17258 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17260 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17268 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17270 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17278 = FFFFFFFFFFFFFFFF</action>
<action>mdslot:cart:rom.mq@17280 = FFFFFFFFFFFFFFFF</action>
</script>
</cheat>
<cheat desc="skip rom check">
<script state="on">
<action>mdslot:cart:rom.mw@0334 = 6014</action>
</script>
<script state="off">
<action>mdslot:cart:rom.mw@0334 = 2011</action>
</script>
</cheat>
</mamecheat>