Code: Select all
<cheat desc="no hit">
<script state="run">
<action>maincpu.pw@1192 = 0e90</action> <!-- missile -->
<action>maincpu.pw@1874 = 2390</action> <!-- enemy -->
<action>maincpu.pw@1a95 = 0e90</action> <!-- bullet -->
</script>
<script state="off">
<action>maincpu.pw@1192 = 11c9</action>
<action>maincpu.pw@1874 = 01c5</action>
<action>maincpu.pw@1a95 = 01c5</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="run">
<action>maincpu.pb@1331 = 26</action> <!-- bomb -->
<action>maincpu.pb@193f = 26</action> <!-- shot -->
</script>
<script state="off">
<action>maincpu.pb@1331 = 27</action>
<action>maincpu.pb@193f = 27</action>
</script>
</cheat>
<cheat desc="sound test mode">
<comment>reset the game (F3) then wait data load to enter sound test mode</comment>
<script state="run">
<!-- routine -->
<action>maincpu.pw@064f = 5ab0</action>
<action>maincpu.pq@5ab0 = f011a5e600cd1185</action>
<action>maincpu.pq@5ab8 = 01b002a910c6c8f7</action>
<action>maincpu.pq@5ac0 = 08a9e801b001a9aa</action>
<action>maincpu.pq@5ac8 = 98ca10e9588a06b0</action>
<action>maincpu.pq@5ad0 = 1069188a06b004a9</action>
<action>maincpu.pq@5ad8 = 06f010a9108698ca</action>
<action>maincpu.pq@5ae0 = 148e00c205b020a9</action>
<action>maincpu.pq@5ae8 = 000000005ab02ce4</action>
<!--
5ab0 | 85 11 : sta $11
5ab2 | ad 00 e6 : lda $e600 // read input
5ab5 | c5 11 : cmp $11
5ab7 | f0 f7 : beq $46c0
5ab9 | a8 : tay
5aba | a6 10 : ldx $10
5abc | c9 02 : cmp #$02
5abe | d0 01 : bne $46d1
5ac0 | ca : dex // decrease code -01
5ac1 | c9 01 : cmp #$01
5ac3 | d0 01 : bne $46d6
5ac5 | e8 : inx // increase code +01
5ac6 | c9 08 : cmp #$08
5ac8 | d0 06 : bne $46e0
5aca | 8a : txa // decrease code -10
5acb | 38 : sec
5acc | e9 10 : sbc #$10
5ace | aa : tax
5acf | 98 : tya
5ad0 | c9 04 : cmp #$04
5ad2 | d0 06 : bne $46ea
5ad4 | 8a : txa // increase code +10
5ad5 | 18 : clc
5ad6 | 69 10 : adc #$10
5ad8 | aa : tax
5ad9 | 98 : tya
5ada | 86 10 : stx $10
5adc | c9 10 : cmp #$10
5ade | f0 06 : beq $46f6
5ae0 | c9 40 : cmp #$20
5ae2 | d0 05 : bne $46f9
5ae4 | a2 00 : ldx #$00 // stop sound
5ae6 | 8e 14 e4 : stx $e414 // send sound code
5ae9 | 4c b0 5a : jmp $5ab0
-->
<!-- display -->
<output format="----- mission-x 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="<< sound code %2.2X >>" line="19" align="center" >
<argument>maincpu.pb@0010</argument>
</output>
</script>
<script state="off">
<action>maincpu.pw@064f = 0cb2</action>
<action>maincpu.pq@5ab0 = 0000000000000000</action>
<action>maincpu.pq@5ab8 = 0000000000000000</action>
<action>maincpu.pq@5ac0 = 0000000000000000</action>
<action>maincpu.pq@5ac8 = 0000000000000000</action>
<action>maincpu.pq@5ad0 = 0000000000000000</action>
<action>maincpu.pq@5ad8 = 0000000000000000</action>
<action>maincpu.pq@5ae0 = 0000000000000000</action>
<action>maincpu.pq@5ae8 = 0000000000000000</action>
</script>
</cheat>