[wrofaero] War of Aero

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: 873
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 1 time

[wrofaero] War of Aero

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@106f6 = 60</action> <!-- enemy -->
        <action>maincpu.mb@10752 = 60</action> <!-- bullet -->
        <action>maincpu.mb@10da8 = 60</action> <!-- wall -->
    </script>
    <script state="off">
        <action>maincpu.mb@106f6 = 67</action>
        <action>maincpu.mb@10752 = 67</action>
        <action>maincpu.mb@10da8 = 67</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mw@b3a8 = 4e71</action>
    </script>
    <script state="off">
        <action>maincpu.mw@b3a8 = 674a</action>
    </script>
</cheat>

<cheat desc="player speed">
    <parameter>
        <item value="0x01">01 (slow)</item>
        <item value="0x03">02       </item>
        <item value="0x06">03       </item>
        <item value="0x09">04       </item>
        <item value="0x0c">05 (fast)</item>
    </parameter>
    <script state="on">
        <action>maincpu.md@b678 = 06410000</action> <!-- left -->
        <action>maincpu.md@b6c0 = 04410000</action> <!-- right -->
        <action>maincpu.md@b6e4 = 06410000</action> <!-- up -->
        <action>maincpu.md@b69c = 04410000</action> <!-- down -->
    </script>
    <script state="change">
        <action>maincpu.mb@b67b = param</action>
        <action>maincpu.mb@b6c3 = param</action>
        <action>maincpu.mb@b6e7 = param</action>
        <action>maincpu.mb@b69f = param</action>
    </script>
    <script state="off">
        <action>maincpu.md@b678 = d27b0078</action>
        <action>maincpu.md@b6c0 = 927b0030</action>
        <action>maincpu.md@b6e4 = d27b000c</action>
        <action>maincpu.md@b69c = 927b0054</action>
    </script>
</cheat>

<cheat desc="bullet speed - player shot">
    <parameter min="0x00" max="0x03" step="0x01" />
    <script state="on">
        <action>maincpu.mq@0ba58 = 4eb9000770004a68</action>
        <action>maincpu.mq@77000 = 2472000072002f01</action>
        <action>maincpu.mq@77008 = 4e92221f51c9fff8</action>
        <action>maincpu.mq@77010 = 4e75000000000000</action>
        <!--
        77000 | 2472 0000 : movea.l (A2,D0.w),A2
        77004 | 72xx      : moveq   #$xx,D1
        77006 | 2f01      : move.l  D1,-(A7)
        77008 | 4e92      : jsr     (A2)
        7700a | 221f      : move.l  (A7)+,D1
        7700c | 51c9 fff8 : dbra    D1,$77006
        77010 | 4e75      : rts
        -->
    </script>
    <script state="change">
        <action>maincpu.mb@77005 = param</action>
    </script>
    <script state="off">
        <action>maincpu.mq@0ba58 = 247200004e924a68</action>
        <action>maincpu.mq@77000 = 0000000000000000</action>
        <action>maincpu.mq@77008 = 0000000000000000</action>
        <action>maincpu.mq@77010 = 0000000000000000</action>
    </script>
</cheat>

<cheat desc="max bullets up">
    <script state="on">
        <action>maincpu.md@b874 = 3e3c0010</action>
    </script>
    <script state="off">
        <action>maincpu.md@b874 = 2e320000</action>
    </script>
</cheat>

<cheat desc="sound test mode">
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.md@00374 =         00076950</action>
        <action>maincpu.mq@76950 = 41f9003001001039</action>
        <action>maincpu.mq@76958 = 00400001b0280001</action>
        <action>maincpu.mq@76960 = 67520c0000fe6602</action>
        <action>maincpu.mq@76968 = 53100c0000fd6602</action>
        <action>maincpu.mq@76970 = 52100c0000f76604</action>
        <action>maincpu.mq@76978 = 041000100c0000fb</action>
        <action>maincpu.mq@76980 = 6604061000100c00</action>
        <action>maincpu.mq@76988 = 00ef661e42411210</action>
        <action>maincpu.mq@76990 = 0c01000e6c083f01</action>
        <action>maincpu.mq@76998 = 4eb84d42600a0401</action>
        <action>maincpu.mq@769a0 = 000e3f014eb85822</action>
        <action>maincpu.mq@769a8 = 544f0c0000df6604</action>
        <action>maincpu.mq@769b0 = 4eb84cd411400001</action>
        <action>maincpu.mq@769b8 = 4e75000000000000</action>
        <!--
        76950 | 41f9 0030 0100 : lea    $300100.l,A0 // sound code address
        76956 | 1039 0040 0001 : move.b $400001.l,D0 // read input
        7695c | b028 0001      : cmp.b  ($1,A0),D0
        76960 | 6752           : beq    $769b4
        76962 | 0c00 00fe      : cmpi.b #-$2,D0
        76966 | 6602           : bne    $7696a
        76968 | 5310           : subq.b #1,(A0)      // decrease code -01
        7696a | 0c00 00fd      : cmpi.b #-$3,D0
        7696e | 6602           : bne    $76972
        76970 | 5210           : addq.b #1,(A0)      // increase code +01
        76972 | 0c00 00f7      : cmpi.b #-$9,D0
        76976 | 6604           : bne    $7697c
        76978 | 0410 0010      : subi.b #$10,(A0)    // decrease code -10
        7697c | 0c00 00fb      : cmpi.b #-$5,D0
        76980 | 6604           : bne    $76986
        76982 | 0610 0010      : addi.b #$10,(A0)    // increase code +10
        76986 | 0c00 00ef      : cmpi.b #-$11,D0
        7698a | 661e           : bne    $769aa
        7698c | 4241           : clr.w  D1           // play sound
        7698e | 1210           : move.b (A0),D1
        76990 | 0c01 000e      : cmpi.b #$e,D1
        76994 | 6c08           : bge    $7699e
        76996 | 3f01           : move.w D1,-(A7)
        76998 | 4eb8 4d42      : jsr    $4d42.w      // music
        7699c | 600a           : bra    $769a8
        7699e | 0401 000e      : subi.b #$e,D1
        769a2 | 3f01           : move.w D1,-(A7)
        769a4 | 4eb8 5822      : jsr    $5822.w      // sfx
        769a8 | 544f           : addq.w #2,A7
        769aa | 0c00 00df      : cmpi.b #-$21,D0
        769ae | 6604           : bne    $769b4
        769b0 | 4eb8 4cd4      : jsr    $4cd4.w      // stop sound
        769b4 | 1140 0001      : move.b D0,($1,A0)
        769b8 | 4e75           : rts
        -->
    </script>
    <script state="run">
        <output format="----- war of aero 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@300100</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.md@00374 =         000006c2</action>
        <action>maincpu.mq@76950 = 0000000000000000</action>
        <action>maincpu.mq@76958 = 0000000000000000</action>
        <action>maincpu.mq@76960 = 0000000000000000</action>
        <action>maincpu.mq@76968 = 0000000000000000</action>
        <action>maincpu.mq@76970 = 0000000000000000</action>
        <action>maincpu.mq@76978 = 0000000000000000</action>
        <action>maincpu.mq@76980 = 0000000000000000</action>
        <action>maincpu.mq@76988 = 0000000000000000</action>
        <action>maincpu.mq@76990 = 0000000000000000</action>
        <action>maincpu.mq@76998 = 0000000000000000</action>
        <action>maincpu.mq@769a0 = 0000000000000000</action>
        <action>maincpu.mq@769a8 = 0000000000000000</action>
        <action>maincpu.mq@769b0 = 0000000000000000</action>
        <action>maincpu.mq@769b8 = 0000000000000000</action>
    </script>
</cheat>
Post Reply