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="<< sound code %2.2X >>" 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>