[garyoret] Garyo Retsuden

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

[garyoret] Garyo Retsuden

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@d867 = 20</action> <!-- enemy -->
        <action>maincpu.mb@db4f = 20</action> <!-- bullet -->
    </script>
    <script state="off">
        <action>maincpu.mb@d867 = 27</action>
        <action>maincpu.mb@db4f = 24</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mb@e060 = 00</action>
    </script>
    <script state="off">
        <action>maincpu.mb@e060 = 04</action>
    </script>
</cheat>

<cheat desc="walk through wall">
    <script state="on">
        <action>maincpu.mw@9213 = 4f12</action>
    </script>
    <script state="off">
        <action>maincpu.mw@9213 = a6c6</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@81c1 =             fe60</action>
        <action>maincpu.mq@fe60 = d711f6380bd11127</action>
        <action>maincpu.mq@fe68 = f7c1fb26020a10c1</action>
        <action>maincpu.mq@fe70 = f726020c10c1ef26</action>
        <action>maincpu.mq@fe78 = 0496102006c1df26</action>
        <action>maincpu.mq@fe80 = 058601b7381020d8</action>
        <!--
        fe60 | d7 11    : STB  $11
        fe62 | f6 38 0B : LDB  $380B // read input
        fe65 | d1 11    : CMPB $11
        fe67 | 27 f7    : BEQ  $FE60
        fe69 | c1 fb    : CMPB #$FB
        fe6b | 26 02    : BNE  $FE6F
        fe6d | 0a 10    : DEC  $10   // decrease code
        fe6f | c1 f7    : CMPB #$F7
        fe71 | 26 02    : BNE  $FE75
        fe73 | 0c 10    : INC  $10   // increase code
        fe75 | c1 ef    : CMPB #$EF
        fe77 | 26 04    : BNE  $FE7D
        fe79 | 96 10    : LDA  $10   // play sound
        fe7b | 20 06    : BRA  $FE83
        fe7d | c1 df    : CMPB #$DF
        fe7f | 26 05    : BNE  $FE86
        fe81 | 86 01    : LDA  #$01  // stop sound
        fe83 | b7 38 10 : STA  $3810 // send sound code
        fe86 | 20 d8    : BRA  $FE60
        -->
    </script>
    <script state="run">
        <output format="----- garyo retsuden 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@1210</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mw@81c1 =             e426</action>
        <action>maincpu.mq@fe60 = 0000000000000000</action>
        <action>maincpu.mq@fe68 = 0000000000000000</action>
        <action>maincpu.mq@fe70 = 0000000000000000</action>
        <action>maincpu.mq@fe78 = 0000000000000000</action>
        <action>maincpu.mq@fe80 = 0000000000000000</action>
    </script>
</cheat>
jman
Posts: 843
Joined: Tue Dec 01, 2020 1:24 pm

[garyoret] Garyo Retsuden (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@81c1 =             fe60</action>
        <action>maincpu.mq@fe60 = 9711b6380b911127</action>
        <action>maincpu.mq@fe68 = f7d61081fb26015a</action>
        <action>maincpu.mq@fe70 = 81f726015c81fd26</action>
        <action>maincpu.mq@fe78 = 02c01081fe2602cb</action>
        <action>maincpu.mq@fe80 = 10d71081ef270681</action>
        <action>maincpu.mq@fe88 = df2605c601f73810</action>
        <action>maincpu.mq@fe90 = 20ceffffffffffff</action>
        <!--
        fe60 | 97 11    : STA  $11
        fe62 | b6 38 0b : LDA  $380B // read input
        fe65 | 91 11    : CMPA $11
        fe67 | 27 f7    : BEQ  $FE60
        fe69 | d6 10    : LDB  $10
        fe6b | 81 fb    : CMPA #$FB
        fe6d | 26 01    : BNE  $FE70
        fe6f | 5a       : DECB       // decrease code -01
        fe70 | 81 f7    : CMPA #$F7
        fe72 | 26 01    : BNE  $FE75
        fe74 | 5c       : INCB       // increase code +01
        fe75 | 81 fd    : CMPA #$FD
        fe77 | 26 02    : BNE  $FE7B
        fe79 | c0 10    : SUBB #$10  // decrease code -10
        fe7b | 81 fe    : CMPA #$FE
        fe7d | 26 02    : BNE  $FE81
        fe7f | cb 10    : ADDB #$10  // increase code +10
        fe81 | d7 10    : STB  $10
        fe83 | 81 ef    : CMPA #$EF
        fe85 | 27 06    : BEQ  $FE8D
        fe87 | 81 df    : CMPA #$DF
        fe89 | 26 05    : BNE  $FE90
        fe8b | c6 01    : LDB  #$01  // stop sound
        fe8d | f7 38 10 : STB  $3810 // send sound code
        fe90 | 20 ce    : BRA  $FE60
        -->
    </script>
    <script state="run">
        <output format="----- garyo retsuden 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@1210</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mw@81c1 =             e426</action>
        <action>maincpu.mq@fe60 = ffffffffffffffff</action>
        <action>maincpu.mq@fe68 = ffffffffffffffff</action>
        <action>maincpu.mq@fe70 = ffffffffffffffff</action>
        <action>maincpu.mq@fe78 = ffffffffffffffff</action>
        <action>maincpu.mq@fe80 = ffffffffffffffff</action>
        <action>maincpu.mq@fe88 = ffffffffffffffff</action>
        <action>maincpu.mq@fe90 = ffffffffffffffff</action>
    </script>
</cheat>
"sound test mode" : rewrite routine. add up/down key (code ±10).
Post Reply