[cfboy0a1] Flash Boy

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

[cfboy0a1] Flash Boy

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="run">
        <action>maincpu.pw@29b9 = 0790</action> <!-- bullet -->
        <action>maincpu.pw@2d8f = 00b0</action> <!-- background -->
    </script>
    <script state="off">
        <action>maincpu.pw@29b9 = 8ad5</action>
        <action>maincpu.pw@2d8f = 01c0</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="run">
        <action>maincpu.pb@1516 = 00</action>
    </script>
    <script state="off">
        <action>maincpu.pb@1516 = 0e</action>
    </script>
</cheat>

<cheat desc="player speed">
    <parameter>
        <item value="0x01">01 (slow)</item>
        <item value="0x02">02       </item>
        <item value="0x04">03       </item>
        <item value="0x06">04       </item>
        <item value="0x08">05 (fast)</item>
    </parameter>
    <script state="run">
        <action>maincpu.pd@14ad = 85fa00c9</action>
        <action>maincpu.pb@14ae =    param</action>
    </script>
    <script state="off">
        <action>maincpu.pd@14ad = 8516e8cd</action>
    </script>
</cheat>

<cheat desc="attack speed up">
    <script state="run">
        <action>maincpu.pb@1534 = 01</action>
    </script>
    <script state="off">
        <action>maincpu.pb@1534 = 10</action>
    </script>
</cheat>

<cheat desc="energy speed">
    <parameter>
        <item value="0xff">01 (slow)</item>
        <item value="0xc0">02       </item>
        <item value="0x80">03       </item>
        <item value="0x40">04       </item>
        <item value="0x01">05 (fast)</item>
    </parameter>
    <script state="run">
        <action>maincpu.pb@2b18 = param</action>
    </script>
    <script state="off">
        <action>maincpu.pb@2b18 = 46</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@0605 =             5140</action>
        <action>maincpu.pq@5140 = f011a5e600cd1185</action>
        <action>maincpu.pq@5148 = 01b002a910c6c8f7</action>
        <action>maincpu.pq@5150 = 08a9e801b001a9aa</action>
        <action>maincpu.pq@5158 = 98ca10e9588a06b0</action>
        <action>maincpu.pq@5160 = 1069188a06b004a9</action>
        <action>maincpu.pq@5168 = 06f010a9108698ca</action>
        <action>maincpu.pq@5170 = 148e00c205b020a9</action>
        <action>maincpu.pq@5178 = 0000000051402ce4</action>
        <!--
        5140 | 85 11    : sta $11
        5142 | ad 00 e6 : lda $e600 // read input
        5145 | c5 11    : cmp $11
        5147 | f0 f7    : beq $5140
        5149 | a8       : tay
        514a | a6 10    : ldx $10
        514c | c9 02    : cmp #$02
        514e | d0 01    : bne $5151
        5150 | ca       : dex       // decrease code -01
        5151 | c9 01    : cmp #$01
        5153 | d0 01    : bne $5156
        5155 | e8       : inx       // increase code +01
        5156 | c9 08    : cmp #$08
        5158 | d0 06    : bne $5160
        515a | 8a       : txa       // decrease code -10
        515b | 38       : sec
        515c | e9 10    : sbc #$10
        515e | aa       : tax
        515f | 98       : tya
        5160 | c9 04    : cmp #$04
        5162 | d0 06    : bne $516a
        5164 | 8a       : txa       // increase code +10
        5165 | 18       : clc
        5166 | 69 10    : adc #$10
        5168 | aa       : tax
        5169 | 98       : tya
        516a | 86 10    : stx $10
        516c | c9 10    : cmp #$10
        516e | f0 06    : beq $5176
        5170 | c9 40    : cmp #$20
        5172 | d0 05    : bne $5179
        5174 | a2 00    : ldx #$00  // stop sound
        5176 | 8e 14 e4 : stx $e414 // send sound code
        5179 | 4c 40 51 : jmp $5140
        -->
        <!-- display -->
        <output format="----- flash boy 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@0605 =             3510</action>
        <action> maincpu.pq@5140 = 0000000000000000</action>
        <action> maincpu.pq@5148 = 0000000000000000</action>
        <action> maincpu.pq@5150 = 0000000000000000</action>
        <action> maincpu.pq@5158 = 0000000000000000</action>
        <action> maincpu.pq@5160 = 0000000000000000</action>
        <action> maincpu.pq@5168 = 0000000000000000</action>
        <action> maincpu.pq@5170 = 0000000000000000</action>
        <action> maincpu.pq@5178 = 0000000000000000</action>
    </script>
</cheat>
Post Reply