[meikyuh] The Real Ghostbusters/Meikyuu Hunter G

This forum is for posting M.A.M.E. Work In Progress "Arcade"cheats that are not quite ready for the prime time. If the cheats are buggy or the cheat descriptions are non-standard then please post them here. Help maybe given but there are no guarantees and they will only be added to the cheat file when the cheat file maintainer is happy with them.
Post Reply
jman
Posts: 843
Joined: Tue Dec 01, 2020 1:24 pm

[meikyuh] The Real Ghostbusters/Meikyuu Hunter G

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@09acd = 20</action> <!-- fire sword -->
        <action>maincpu.mb@0fa97 = 20</action> <!-- bullet -->
        <action>maincpu.mb@0a12f = 20</action> <!-- enemy -->
        <action>maincpu.mb@0da11 = 20</action> <!-- boss explosion -->
        <action>maincpu.mb@0fcb2 = 20</action> <!-- bomb explosion -->
        <action>maincpu.mb@3b794 = 20</action> <!-- trap ($7794) -->
    </script>
    <script state="off">
        <action>maincpu.mb@09acd = 25</action>
        <action>maincpu.mb@0fa97 = 27</action>
        <action>maincpu.mb@0a12f = 2d</action>
        <action>maincpu.mb@0da11 = 26</action>
        <action>maincpu.mb@0fcb2 = 26</action>
        <action>maincpu.mb@3b794 = 27</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mb@39f79 = 00</action> <!-- ($5f79) -->
    </script>
    <script state="off">
        <action>maincpu.mb@39f79 = 11</action>
    </script>
</cheat>

<cheat desc="walk through wall">
    <script state="on">
        <action>maincpu.mb@a576 = 00</action> <!-- background -->
        <action>maincpu.mb@a57a = 20</action> <!-- objects -->
    </script>
    <script state="off">
        <action>maincpu.mb@a576 = 05</action>
        <action>maincpu.mb@a57a = 27</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@08832 =             7190</action>
        <action>maincpu.mq@3b190 = d711f63800d11127</action>
        <action>maincpu.mq@3b198 = f7c1fb26020a10c1</action>
        <action>maincpu.mq@3b1a0 = f726020c10c1ef26</action>
        <action>maincpu.mq@3b1a8 = 0496102006c1df26</action>
        <action>maincpu.mq@3b1b0 = 058601b7380020d8</action>
        <!--
        7190 | d7 11    : STB  $11
        7192 | f6 38 00 : LDB  $3800 // read input
        7195 | d1 11    : CMPB $11
        7197 | 27 f7    : BEQ  $7190
        7199 | c1 fb    : CMPB #$FB
        719b | 26 02    : BNE  $719F
        719d | 0a 10    : DEC  $10   // decrease code
        719f | c1 f7    : CMPB #$F7
        71a1 | 26 02    : BNE  $71A5
        71a3 | 0c 10    : INC  $10   // increase code
        71a5 | c1 ef    : CMPB #$EF
        71a7 | 26 04    : BNE  $71AD
        71a9 | 96 10    : LDA  $10   // play sound
        71ab | 20 06    : BRA  $71B3
        71ad | c1 df    : CMPB #$DF
        71af | 26 05    : BNE  $71B6
        71b1 | 86 01    : LDA  #$01  // stop sound
        71b3 | b7 38 00 : STA  $3800
        71b6 | 20 d8    : BRA  $7190
        -->
    </script>
    <script state="run">
        <output format="----- meikyu hunter g 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="button 2 : 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@0010</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mw@08832 =             606a</action>
        <action>maincpu.mq@3b190 = 0000000000000000</action>
        <action>maincpu.mq@3b198 = 0000000000000000</action>
        <action>maincpu.mq@3b1a0 = 0000000000000000</action>
        <action>maincpu.mq@3b1a8 = 0000000000000000</action>
        <action>maincpu.mq@3b1b0 = 0000000000000000</action>
    </script>
</cheat>
Different game system between ghostb and meikyuh so some codes in official package based on 0.221 don't work.
  • "always have ghosts" : not work because meikyh does not have "ghost capture".
  • "slimer" : not work. But meikyuh has "guard ball" instead of "slimer" so different address?
  • "maximum shot power" : meikyuh has 6 weapon items so maximum value is not 0x03 but 0x3f.
jman
Posts: 843
Joined: Tue Dec 01, 2020 1:24 pm

[meikyuh] The Real Ghostbusters/Meikyuu Hunter G (update)

Post by jman »

Code: Select all

<cheat desc="sound test mode">
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.mw@08832 =             7190</action>
        <action>maincpu.mq@3b190 = 9711b63800911127</action>
        <action>maincpu.mq@3b198 = f7d61081fb26015a</action>
        <action>maincpu.mq@3b1a0 = 81f726015c81fd26</action>
        <action>maincpu.mq@3b1a8 = 02c01081fe2602cb</action>
        <action>maincpu.mq@3b1b0 = 10d71081ef270681</action>
        <action>maincpu.mq@3b1b8 = df2605c601f73800</action>
        <action>maincpu.mq@3b1c0 = 20ce000000000000</action>
        <!--
        7190 | 97 11    : STA  $11
        7192 | b6 38 00 : LDA  $3800 // read input
        7195 | 91 11    : CMPA $11
        7197 | 27 f7    : BEQ  $7190
        7199 | d6 10    : LDB  $10
        719b | 81 fb    : CMPA #$FB
        719d | 26 01    : BNE  $71A0
        719f | 5a       : DECB       // decrease code -01
        71a0 | 81 f7    : CMPA #$F7
        71a2 | 26 01    : BNE  $71A5
        71a4 | 5c       : INCB       // increase code +01
        71a5 | 81 fd    : CMPA #$FD
        71a7 | 26 02    : BNE  $71AB
        71a9 | c0 10    : SUBB #$10  // decrease code -10
        71ab | 81 fe    : CMPA #$FE
        71ad | 26 02    : BNE  $71B1
        71af | cb 10    : ADDB #$10  // increase code +10
        71b1 | d7 10    : STB  $10
        71b3 | 81 ef    : CMPA #$EF
        71b5 | 27 06    : BEQ  $71BD
        71b7 | 81 df    : CMPA #$DF
        71b9 | 26 05    : BNE  $71C0
        71bb | c6 01    : LDB  #$01  // stop sound
        71bd | f7 38 00 : STB  $3800 // send sound code
        71c0 | 20 ce    : BRA  $7190
        -->
    </script>
    <script state="run">
        <output format="----- meikyu hunter g 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="&lt;&lt; sound code %2.2X &gt;&gt;"          line="19" align="center"  >
            <argument>maincpu.pb@0010</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mw@08832 =             606a</action>
        <action>maincpu.mq@3b190 = 0000000000000000</action>
        <action>maincpu.mq@3b198 = 0000000000000000</action>
        <action>maincpu.mq@3b1a0 = 0000000000000000</action>
        <action>maincpu.mq@3b1a8 = 0000000000000000</action>
        <action>maincpu.mq@3b1b0 = 0000000000000000</action>
        <action>maincpu.mq@3b1b8 = 0000000000000000</action>
        <action>maincpu.mq@3b1c0 = 0000000000000000</action>
    </script>
</cheat>
"sound test mode" : rewrite routine. add up/down key (code ±10).
Post Reply