Code: Select all
<cheat desc="no hit">
<script state="run">
<action>maincpu.pb@1057 = 60</action> <!-- objects -->
<action>maincpu.pb@112e = 60</action> <!-- window (both arms) -->
<action>maincpu.pb@4b27 = 60</action> <!-- kong -->
<action>maincpu.pb@4bf0 = 60</action> <!-- fire -->
</script>
<script state="off">
<action>maincpu.pb@1057 = a9</action>
<action>maincpu.pb@112e = a9</action>
<action>maincpu.pb@4b27 = a9</action>
<action>maincpu.pb@4bf0 = a9</action>
</script>
</cheat>
<cheat desc="sound test mode">
<comment>reset the game (F3) to enter sound test mode</comment>
<script state="run">
<action>maincpu.pw@3e29 = 5000</action>
<action>maincpu.pq@5000 = f011e4e600ce1186</action>
<action>maincpu.pq@5008 = e010a602b020e0f7</action>
<action>maincpu.pq@5010 = b040e010e602b010</action>
<action>maincpu.pq@5018 = 80e050242c10c505</action>
<action>maincpu.pq@5020 = 2ce4148d00c905b0</action>
<action>maincpu.pq@5028 = 0000000000005000</action>
<!--
5000 | 86 11 : stx $11
5002 | ce 00 e6 : ldx $e600 // read input
5005 | e4 11 : cpx $11
5007 | f0 f7 : beq $5000
5009 | e0 20 : cpx #$20
500b | b0 02 : bne $500f
500d | a6 10 : dec $10 // decrease code
500f | e0 10 : cpx #$10
5011 | b0 02 : bne $5015
5013 | e6 10 : inc $10 // increase code
5015 | e0 40 : cpx #$40
5017 | b0 05 : bne $501e
5019 | c5 10 : lda $10 // play sound
501b | 2c 50 24 : jmp $5024
501e | e0 80 : cpx #$80
5020 | b0 05 : bne $5027
5022 | c9 00 : lda #$00 // stop sound
5024 | 8d 14 e4 : sta $e414 // send sound code
5027 | 2c 00 50 : jmp $5000
-->
<output format="----- the tower sound test mode -----" line="10" align="center" />
<output format="left/left : decrease code" line="11" align="center" />
<output format="left/right : increase code" line="12" align="center" />
<output format="left/up : play sound" line="13" align="center" />
<output format="left/down : 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@0010</argument>
</output>
</script>
<script state="off">
<action>maincpu.pw@3e29 = 1b59</action>
<action>maincpu.pq@5000 = 0000000000000000</action>
<action>maincpu.pq@5008 = 0000000000000000</action>
<action>maincpu.pq@5010 = 0000000000000000</action>
<action>maincpu.pq@5018 = 0000000000000000</action>
<action>maincpu.pq@5020 = 0000000000000000</action>
<action>maincpu.pq@5028 = 0000000000000000</action>
</script>
</cheat>