[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
CheatFinder Staff Sergeant
CheatFinder Staff Sergeant
Posts: 333
Joined: Tue Dec 01, 2020 1:24 pm

[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
CheatFinder Staff Sergeant
CheatFinder Staff Sergeant
Posts: 333
Joined: Tue Dec 01, 2020 1:24 pm

[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>
Post Reply