[ctornado] Tornado

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: 864
Joined: Tue Dec 01, 2020 1:24 pm

[ctornado] Tornado

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="run">
        <action>maincpu.pw@2335 = 6018</action> <!-- enemy vs capsule -->
        <action>maincpu.pw@2677 = fa60</action> <!-- enemy vs player -->
    </script>
    <script state="off">
        <action>maincpu.pw@2335 = 6058</action>
        <action>maincpu.pw@2677 = 6fc5</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.pb@0f7a = 2a</action>
    </script>
    <script state="off">
        <action>maincpu.pb@0f7a = 29</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@062e =             59b0</action>
        <action>maincpu.pq@59b0 = f011a5e600cd1185</action>
        <action>maincpu.pq@59b8 = 01b002a910c6c8f7</action>
        <action>maincpu.pq@59c0 = 08a9e801b001a9aa</action>
        <action>maincpu.pq@59c8 = 98ca10e9588a06b0</action>
        <action>maincpu.pq@59d0 = 1069188a06b004a9</action>
        <action>maincpu.pq@59d8 = 06f010a9108698ca</action>
        <action>maincpu.pq@59e0 = 148e00c205b020a9</action>
        <action>maincpu.pq@59e8 = 0000000059b02ce4</action>
        <!--
        59b0 | 85 11    : sta $11
        59b2 | ad 00 e6 : lda $e600 // read input
        59b5 | c5 11    : cmp $11
        59b7 | f0 f7    : beq $59b0
        59b9 | a8       : tay
        59ba | a6 10    : ldx $10
        59bc | c9 02    : cmp #$02
        59be | d0 01    : bne $59c1
        59c0 | ca       : dex       // decrease code -01
        59c1 | c9 01    : cmp #$01
        59c3 | d0 01    : bne $59c6
        59c5 | e8       : inx       // increase code +01
        59c6 | c9 08    : cmp #$08
        59c8 | d0 06    : bne $59d0
        59ca | 8a       : txa       // decrease code -10
        59cb | 38       : sec
        59cc | e9 10    : sbc #$10
        59ce | aa       : tax
        59cf | 98       : tya
        59d0 | c9 04    : cmp #$04
        59d2 | d0 06    : bne $59da
        59d4 | 8a       : txa       // increase code +10
        59d5 | 18       : clc
        59d6 | 69 10    : adc #$10
        59d8 | aa       : tax
        59d9 | 98       : tya
        59da | 86 10    : stx $10
        59dc | c9 10    : cmp #$10
        59de | f0 06    : beq $59e6
        59e0 | c9 40    : cmp #$20
        59e2 | d0 05    : bne $59e9
        59e4 | a2 00    : ldx #$00  // stop sound
        59e6 | 8e 14 e4 : stx $e414 // send sound code
        59e9 | 4c b0 59 : jmp $59b0
        -->
        <action>audiocpu.pb@0bb8 = 58</action> <!-- enable interrupt in playing music (0x41-0x42) to stop sound -->
        <!-- display -->
        <output format="----- tornado 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.pw@062e =             0a82</action>
        <action> maincpu.pq@59b0 = 0000000000000000</action>
        <action> maincpu.pq@59b8 = 0000000000000000</action>
        <action> maincpu.pq@59c0 = 0000000000000000</action>
        <action> maincpu.pq@59c8 = 0000000000000000</action>
        <action> maincpu.pq@59d0 = 0000000000000000</action>
        <action> maincpu.pq@59d8 = 0000000000000000</action>
        <action> maincpu.pq@59e0 = 0000000000000000</action>
        <action> maincpu.pq@59e8 = 0000000000000000</action>
        <action>audiocpu.pb@0bb8 =               78</action>
    </script>
</cheat>
Post Reply