[megrescu] Megumi Rescue

This forum is for posting M.A.M.E. arcade cheats. Requests will be fulfilled here....but please keep the requests to the requests forum.
Post Reply
jman
Posts: 1316
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 9 times

[megrescu] Megumi Rescue

Post by jman »

megrescu will be added in 0.245 so that I create basic RAM cheats.

Code: Select all

<cheat desc="infinite credit">
    <script state="run">
        <action>maincpu.pb@c000 = 99</action>
    </script>
</cheat>

<cheat desc="infinite life">
    <script state="run">
        <action>maincpu.pb@c02d = 09</action>
    </script>
</cheat>

<cheat desc="always have power up">
    <comment>player gfx and music don't change</comment>
    <script state="run">
        <action>maincpu.pb@c702 = 02</action>
    </script>
</cheat>

<cheat desc="finish current level now (rescue)">
    <script state="on">
        <action>maincpu.pb@c5de = 00</action>
    </script>
</cheat>
This game has 3 patterns to finish level.
  • Rescue all people.
  • Put out all fire.
  • Catch helicopter to go to challenge stage.
I find "people" pattern but don't find "fire" and "helicopter".

The following ROM codes are WIP. Required more test.

Code: Select all

<cheat desc="keep a fireman (wip)">
    <script state="on">
        <action>maincpu.md@268a =         217e80c3</action>
        <action>maincpu.mq@7e80 = f83ac6ec22fa8021</action>
        <action>maincpu.mq@7e88 = 3e052801fe0fe6c6</action>
        <action>maincpu.mq@7e90 = c3ec0021c6f83210</action>
        <action>maincpu.mq@7e98 = ffffffffffff26a4</action>
        <!--
        7e80 | 21 80 fa : ld  hl,$FA80
        7e83 | 22 ec c6 : ld  ($C6EC),hl
        7e86 | 3a f8 c6 : ld  a,($C6F8)
        7e89 | e6 0f    : and $0F
        7e8b | fe 01    : cp  $01
        7e8d | 28 05    : jr  z,$7E94
        7e8f | 3e 10    : ld  a,$10
        7e91 | 32 f8 c6 : ld  ($C6F8),a
        7e94 | 21 00 ec : ld  hl,$EC00
        7e97 | c3 a4 26 : jp  $26A4
        -->
    </script>
    <script state="off">
        <action>maincpu.md@268a =         21c5f432</action>
        <action>maincpu.mq@7e80 = ffffffffffffffff</action>
        <action>maincpu.mq@7e88 = ffffffffffffffff</action>
        <action>maincpu.mq@7e90 = ffffffffffffffff</action>
        <action>maincpu.mq@7e98 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="auto fire (wip)">
    <script state="on">
        <action>maincpu.mq@24fc = 794328c0e6c1483a</action> <!-- ld a,($C148) / and $C0 -->
    </script>
    <script state="off">
        <action>maincpu.mq@24fc = 7943280fe6c1473a</action>
    </script>
</cheat>

<cheat desc="fast fire fighting (wip)">
    <script state="on">
        <action>maincpu.mb@291d = 01</action>
        <action>maincpu.mb@2951 = 01</action>
    </script>
    <script state="off">
        <action>maincpu.mb@291d = 1e</action>
        <action>maincpu.mb@2951 = 3c</action>
    </script>
</cheat>

<cheat desc="power up (wip)">
    <script state="on">
        <action>maincpu.md@2673 =         ed7ea0cd</action>
        <action>maincpu.mq@7ea0 = 02fec7023ac6fa22</action>
        <action>maincpu.mq@7ea8 = ffffffc92b90cdd0</action>
        <!--
        7ea0 | 22 fa c6 : ld   ($C6FA),hl
        7ea3 | 3a 02 c7 : ld   a,($C702)
        7ea6 | fe 02    : cp   $02
        7ea8 | d0       : ret  nc
        7ea9 | cd 90 2b : call $2B90
        7eac | c9       : ret
        -->
    </script>
    <script state="off">
        <action>maincpu.md@2673 =         edc6fa22</action>
        <action>maincpu.mq@7ea0 = ffffffffffffffff</action>
        <action>maincpu.mq@7ea8 = ffffffffffffffff</action>
    </script>
</cheat>
"fast fire fighting" is unique. This code reduces the time to go out after you get in through the window.
jman

my wip cheat database back-up (06/01/2025 ver.)
https://u3.getuploader.com/...../download/58
downloadpass : jman2020
jman
Posts: 1316
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 9 times

[megrescu] sound test mode

Post by jman »

Code: Select all

<cheat desc="sound test mode (test)">
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.mw@0112 =             7eb0</action>
        <action>maincpu.mq@7eb0 = c0fec1483ac20021</action>
        <action>maincpu.mq@7eb8 = 1028bffee0db1628</action>
        <action>maincpu.mq@7ec0 = 0828a7f8dbfad3af</action>
        <action>maincpu.mq@7ec8 = f03e0228103e7fcb</action>
        <action>maincpu.mq@7ed0 = 0120f0fedf2847b8</action>
        <action>maincpu.mq@7ed8 = c0fe34012010fe35</action>
        <action>maincpu.mq@7ee0 = 20bffe06187e0320</action>
        <action>maincpu.mq@7ee8 = c318f80032ff3e05</action>
        <!--
        7eb0 | 21 00 c2 : ld  hl,$C200  // sound code address
        7eb3 | 3a 48 c1 : ld  a,($C148) // read button input
        7eb6 | fe c0    : cp  $C0
        7eb8 | 28 16    : jr  z,$7ED0
        7eba | db e0    : in  a,($E0)   // read start button input
        7ebc | fe bf    : cp  $BF
        7ebe | 28 10    : jr  z,$7ED0
        7ec0 | af       : xor a
        7ec1 | d3 fa    : out ($FA),a
        7ec3 | db f8    : in  a,($F8)   // read paddle input
        7ec5 | a7       : and a
        7ec6 | 28 08    : jr  z,$7ED0
        7ec8 | cb 7f    : bit 7,a
        7eca | 3e 10    : ld  a,$10
        7ecc | 28 02    : jr  z,$7ED0
        7ece | 3e f0    : ld  a,$F0
        7ed0 | b8       : cp  b
        7ed1 | 47       : ld  b,a
        7ed2 | 28 df    : jr  z,$7EB3
        7ed4 | fe f0    : cp  $F0
        7ed6 | 20 01    : jr  nz,$7ED9
        7ed8 | 35       : dec (hl)      // decrease code
        7ed9 | fe 10    : cp  $10
        7edb | 20 01    : jr  nz,$7EDE
        7edd | 34       : inc (hl)      // increase code
        7ede | fe c0    : cp  $C0
        7ee0 | 20 03    : jr  nz,$7EE5
        7ee2 | 7e       : ld  a,(hl)    // play sound
        7ee3 | 18 06    : jr  $7EEB
        7ee5 | fe bf    : cp  $BF
        7ee7 | 20 05    : jr  nz,$7EEE
        7ee9 | 3e ff    : ld  a,$FF     // stop sound
        7eeb | 32 00 f8 : ld  ($F800),a // send sound code
        7eee | 18 c3    : jr  $7EB3
        -->
    </script>
    <script state="run">
        <output format="----- megumi rescue sound test mode -----" line="10" align="center" />
        <output format="left : decrease code"                      line="11" align="center" />
        <output format="right : increase code"                     line="12" align="center" />
        <output format="button 1 : play sound"                     line="13" align="center" />
        <output format="start : stop sound"                        line="14" align="center" />
        <output format="----------------------------"              line="15" align="center" />
        <output format="&lt;&lt; sound code %2.2X &gt;&gt;"        line="17" align="center"  >
            <argument>maincpu.pb@c200</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mw@0112 =            01f5</action>
        <action>maincpu.mq@7eb0 = ffffffffffffffff</action>
        <action>maincpu.mq@7eb8 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec0 = ffffffffffffffff</action>
        <action>maincpu.mq@7ec8 = ffffffffffffffff</action>
        <action>maincpu.mq@7ed0 = ffffffffffffffff</action>
        <action>maincpu.mq@7ed8 = ffffffffffffffff</action>
        <action>maincpu.mq@7ee0 = ffffffffffffffff</action>
        <action>maincpu.mq@7ee8 = ffffffffffffffff</action>
    </script>
</cheat>
jman

my wip cheat database back-up (06/01/2025 ver.)
https://u3.getuploader.com/...../download/58
downloadpass : jman2020
jman
Posts: 1316
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 9 times

[megrescu] Megumi Rescue

Post by jman »

Updated ROM codes collection.

megrescu.xml

Code: Select all

<!-- Megumi Rescue -->
<mamecheat version="1">

    <cheat desc="keep a fire man">
        <script state="on">
            <action>maincpu.md@268A = 217E80C3        </action>
            <action>maincpu.mq@7E80 = F83AC6EC22FA8021</action>
            <action>maincpu.mq@7E88 = 3E052801FE0FE6C6</action>
            <action>maincpu.mq@7E90 = C3EC0021C6F83210</action>
            <action>maincpu.mq@7E98 = FFFFFFFFFFFF26A4</action>
            <!--
            7E80 | 21 80 FA : ld   hl,$FA80
            7E83 | 22 EC C6 : ld   ($C6EC),hl
            7E86 | 3A F8 C6 : ld   a,($C6F8)
            7E89 | E6 0F    : and  $0F
            7E8B | FE 01    : cp   $01
            7E8D | 28 05    : jr   z,$7E94
            7E8F | 3E 10    : ld   a,$10
            7E91 | 32 F8 C6 : ld   ($C6F8),a
            7E94 | 21 00 EC : ld   hl,$EC00
            7E97 | C3 A4 26 : jp   $26A4
            -->
        </script>
        <script state="off">
            <action>maincpu.md@268A = 21C5F432        </action>
            <action>maincpu.mq@7E80 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7E88 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7E90 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7E98 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mq@24FC = 794328C0E6C1483A</action>
        </script>
        <script state="off">
            <action>maincpu.mq@24FC = 7943280FE6C1473A</action>
        </script>
    </cheat>

    <cheat desc="rise of fire man">
        <comment>press 1P start button</comment>
        <script state="on">
            <action>maincpu.md@2676 = 007EA0CD        </action>
            <action>maincpu.mq@7EA0 = 5FFF003A572FE0DB</action>
            <action>maincpu.mq@7EA8 = CBA22F7BFF00327A</action>
            <action>maincpu.mq@7EB0 = 53EDFD8011072877</action>
            <action>maincpu.mq@7EB8 = FFC9C6EC5BEDC6EC</action>
            <!--
            7EA0 | DB E0       : in   a,($E0)
            7EA2 | 2F          : cpl
            7EA3 | 57          : ld   d,a
            7EA4 | 3A 00 FF    : ld   a,($FF00)
            7EA7 | 5F          : ld   e,a
            7EA8 | 7A          : ld   a,d
            7EA9 | 32 00 FF    : ld   ($FF00),a
            7EAC | 7B          : ld   a,e
            7EAD | 2F          : cpl
            7EAE | A2          : and  d
            7EAF | CB 77       : bit  6,a
            7EB1 | 28 07       : jr   z,$7EBA
            7EB3 | 11 80 FD    : ld   de,$FD80
            7EB6 | ED 53 EC C6 : ld   ($C6EC),de
            7EBA | ED 5B EC C6 : ld   de,($C6EC)
            7EBE | C9          : ret
            -->
        </script>
        <script state="off">
            <action>maincpu.md@2676 = C6EC5BED        </action>
            <action>maincpu.mq@7EA0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7EA8 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7EB0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7EB8 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="control of fire man (test)">
        <comment>fire man follows receiver but rescued people don't follow</comment>
        <script state="on">
            <action>maincpu.md@26F7 = 3A25C9CD</action>
        </script>
        <script state="off">
            <action>maincpu.md@26F7 = 3AC6EA22</action>
        </script>
    </cheat>

    <cheat desc="fast fire fighting">
        <script state="on">
            <action>maincpu.mb@291D = 01</action>
            <action>maincpu.mb@2951 = 01</action>
        </script>
        <script state="off">
            <action>maincpu.mb@291D = 1E</action>
            <action>maincpu.mb@2951 = 3C</action>
        </script>
    </cheat>

    <cheat desc="power up">
        <script state="on">
            <action>maincpu.mw@25AB = 7EC0        </action>
            <action>maincpu.mq@7EC0 = 02FEC7023A25D3CD</action>
            <action>maincpu.mq@7EC8 = FFFFFFFFC92B90DC</action>
            <!--
            7EC0 | CD D3 25 : call $25D3
            7EC3 | 3A 02 C7 : ld   a,($C702)
            7EC6 | FE 02    : cp   $02
            7EC8 | DC 90 2B : call c,$2B90
            7ECB | C9       : ret
            -->
        </script>
        <script state="off">
            <action>maincpu.mw@25AB = 25D3            </action>
            <action>maincpu.mq@7EC0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7EC8 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@0112 = 7ED0            </action>
            <action>maincpu.mq@7ED0 = C1483A000EC20021</action>
            <action>maincpu.mq@7ED8 = E0DB100E0220C0FE</action>
            <action>maincpu.mq@7EE0 = AFF3200E0220BFFE</action>
            <action>maincpu.mq@7EE8 = 0828A7FBF8DBFAD3</action>
            <action>maincpu.mq@7EF0 = 020E0220010E7FCB</action>
            <action>maincpu.mq@7EF8 = FBF8DBFAD3083EF3</action>
            <action>maincpu.mq@7F00 = 20040E7FCB0828A7</action>
            <action>maincpu.mq@7F08 = C32847B879080E02</action>
            <action>maincpu.mq@7F10 = 2002FE35012001FE</action>
            <action>maincpu.mq@7F18 = F03E042004FE3401</action>
            <action>maincpu.mq@7F20 = 103E052008FE0618</action>
            <action>maincpu.mq@7F28 = 7E032010FE787786</action>
            <action>maincpu.mq@7F30 = FF3E052020FE0618</action>
            <action>maincpu.mq@7F38 = FFFFFF9618F80032</action>
            <!--
            7ED0 | 21 00 C2 : ld   hl,$C200  // sound code address
            7ED3 | 0E 00    : ld   c,$00
            7ED5 | 3A 48 C1 : ld   a,($C148) // read button 1
            7ED8 | FE C0    : cp   $C0
            7EDA | 20 02    : jr   nz,$7EDE
            7EDC | 0E 10    : ld   c,$10
            7EDE | DB E0    : in   a,($E0)   // read start button
            7EE0 | FE BF    : cp   $BF
            7EE2 | 20 02    : jr   nz,$7EE6
            7EE4 | 0E 20    : ld   c,$20
            7EE6 | F3       : di
            7EE7 | AF       : xor  a
            7EE8 | D3 FA    : out  ($FA),a
            7EEA | DB F8    : in   a,($F8)   // read 1P paddle
            7EEC | FB       : ei
            7EED | A7       : and  a
            7EEE | 28 08    : jr   z,$7EF8
            7EF0 | CB 7F    : bit  7,a
            7EF2 | 0E 01    : ld   c,$01
            7EF4 | 20 02    : jr   nz,$7EF8
            7EF6 | 0E 02    : ld   c,$02
            7EF8 | F3       : di
            7EF9 | 3E 08    : ld   a,$08
            7EFB | D3 FA    : out  ($FA),a
            7EFD | DB F8    : in   a,($F8)   // read 2P paddle
            7EFF | FB       : ei
            7F00 | A7       : and  a
            7F01 | 28 08    : jr   z,$7F0B
            7F03 | CB 7F    : bit  7,a
            7F05 | 0E 04    : ld   c,$04
            7F07 | 20 02    : jr   nz,$7F0B
            7F09 | 0E 08    : ld   c,$08
            7F0B | 79       : ld   a,c
            7F0C | B8       : cp   b
            7F0D | 47       : ld   b,a
            7F0E | 28 C3    : jr   z,$7ED3
            7F10 | FE 01    : cp   $01
            7F12 | 20 01    : jr   nz,$7F15
            7F14 | 35       : dec  (hl)      // decrease code -01
            7F15 | FE 02    : cp   $02
            7F17 | 20 01    : jr   nz,$7F1A
            7F19 | 34       : inc  (hl)      // increase code +01
            7F1A | FE 04    : cp   $04
            7F1C | 20 04    : jr   nz,$7F22
            7F1E | 3E F0    : ld   a,$F0     // decrease code -10
            7F20 | 18 06    : jr   $7F28
            7F22 | FE 08    : cp   $08
            7F24 | 20 05    : jr   nz,$7F2B
            7F26 | 3E 10    : ld   a,$10     // increase code +10
            7F28 | 86       : add  a,(hl)
            7F29 | 77       : ld   (hl),a
            7F2A | 78       : ld   a,b
            7F2B | FE 10    : cp   $10
            7F2D | 20 03    : jr   nz,$7F32
            7F2F | 7E       : ld   a,(hl)    // play sound
            7F30 | 18 06    : jr   $7F38
            7F32 | FE 20    : cp   $20
            7F34 | 20 05    : jr   nz,$7F3B
            7F36 | 3E FF    : ld   a,$FF     // stop sound
            7F38 | 32 00 F8 : ld   ($F800),a // send sound code
            7F3B | 18 96    : jr   $7ED3
            -->
        </script>
        <script state="run">
            <output format="----- sound test mode -----"       line="10" align="center" />
            <output format="1P left : decrease code -01"       line="11" align="center" />
            <output format="1P right : increase code +01"      line="12" align="center" />
            <output format="2P left : decrease code -10"       line="13" align="center" />
            <output format="2P right : increase code +10"      line="14" align="center" />
            <output format="button 1 : play sound"             line="15" align="center" />
            <output format="start : stop sound"                line="16" align="center" />
            <output format="----------------------------"      line="17" align="center" />
            <output format="&lt;&lt; sound code %02X &gt;&gt;" line="19" align="center"  >
                <argument>maincpu.pb@C200</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mw@0112 = 01F5            </action>
            <action>maincpu.mq@7ED0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7ED8 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7EE0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7EE8 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7EF0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7EF8 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7F00 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7F08 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7F10 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7F18 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7F20 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7F28 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7F30 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@7F38 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

</mamecheat>
  • "rise of fire man" : Added new. Fire man rises when you press 1P start button.
  • "control of fire man" : Added new as test code. Fire man follows receiver but rescued people don't follow.
  • "power up" : Rewritten routine.
  • "sound test mode" : Added 2P left/right to select code ±10.
jman

my wip cheat database back-up (06/01/2025 ver.)
https://u3.getuploader.com/...../download/58
downloadpass : jman2020
Post Reply