[airduel]+ Air Duel

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

[airduel]+ Air Duel

Post by jman »

airduel.xml

Code: Select all

<!-- Air Duel (World, M82 hardware) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mw@1C4A8 = FE6F</action>
        </script>
        <script state="off">
            <action>maincpu.mw@1C4A8 = FFA2</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mb@12EE5 = 38</action> <!-- helicopter -->
            <action>maincpu.mb@1333B = 38</action> <!-- airplane -->
        </script>
        <script state="off">
            <action>maincpu.mb@12EE5 = 39</action>
            <action>maincpu.mb@1333B = 39</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter>
            <item value="0x0F0080BB">01 (slow)</item>
            <item value="0x0F0280BB">02       </item>
            <item value="0x0F0480BB">03       </item>
            <item value="0x0F0680BB">04       </item>
            <item value="0x0F0880BB">05 (fast)</item>
        </parameter>
        <script state="change">
            <!-- helicopter -->
            <action>maincpu.md@12E44 = param</action> <!-- y position -->
            <action>maincpu.md@12E7A = param</action> <!-- x position -->
            <!-- airplane -->
            <action>maincpu.md@1329A = param</action> <!-- y position -->
            <action>maincpu.md@132D3 = param</action> <!-- x position -->
        </script>
        <script state="off">
            <action>maincpu.md@12E44 = 0F185E8B</action>
            <action>maincpu.md@12E7A = 0F1A5E8B</action>
            <action>maincpu.md@1329A = 0F185E8B</action>
            <action>maincpu.md@132D3 = 0F1A5E8B</action>
        </script>
    </cheat>

    <cheat desc="max bullets up">
        <script state="on">
            <action>maincpu.mw@12EEC = 083C</action> <!-- helicopter -->
            <action>maincpu.mw@13342 = 083C</action> <!-- airplane -->
        </script>
        <script state="off">
            <action>maincpu.mw@12EEC = C43A</action>
            <action>maincpu.mw@13342 = C43A</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>set &quot;skip ram/rom check&quot; then reset the game (F3)</comment>
        <script state="on">
            <action>maincpu.mw@0071D = FD37            </action> <!-- disable ram ok message -->
            <action>maincpu.mw@00815 = FC3F            </action> <!-- disable rom ok message -->
            <action>maincpu.mw@1014C = 1870            </action>
            <action>maincpu.mq@01870 = F874E08AC43A00E4</action>
            <action>maincpu.mq@01878 = 75FDFC800000A036</action>
            <action>maincpu.mq@01880 = 0275FEFC80C8FE02</action>
            <action>maincpu.mq@01888 = 2C0275FBFC80C0FE</action>
            <action>maincpu.mq@01890 = 10040275F7FC8010</action>
            <action>maincpu.mq@01898 = 747FFC800000A236</action>
            <action>maincpu.mq@018A0 = 20B00475BFFC8007</action>
            <action>maincpu.mq@018A8 = FFFFFFFFC4EB00E6</action>
            <!--
            1870 | E4 00       : in      al,0h      // read input
            1872 | 3A C4       : cmp     al,ah
            1874 | 8A E0       : mov     ah,al
            1876 | 74 F8       : be      1870h
            1878 | 36 A0 00 00 : mov     al,ss:[0h]
            187C | 80 FC FD    : cmp     ah,0FDh
            187F | 75 02       : bne     1883h
            1881 | FE C8       : dec     al         // decrease code -01
            1883 | 80 FC FE    : cmp     ah,0FEh
            1886 | 75 02       : bne     188Ah
            1888 | FE C0       : inc     al         // increase code +01
            188A | 80 FC FB    : cmp     ah,0FBh
            188D | 75 02       : bne     1891h
            188F | 2C 10       : sub     al,10h     // decrease code -10
            1891 | 80 FC F7    : cmp     ah,0F7h
            1894 | 75 02       : bne     1898h
            1896 | 04 10       : add     al,10h     // increase code +10
            1898 | 36 A2 00 00 : mov     ss:[0h],al
            189C | 80 FC 7F    : cmp     ah,7Fh
            189F | 74 07       : be      18A8h      // play sound
            18A1 | 80 FC BF    : cmp     ah,0BFh
            18A4 | 75 04       : bne     18AAh
            18A6 | B0 20       : mov     al,20h     // stop sound
            18A8 | E6 00       : out     0h,al      // send sound code
            18AA | EB C4       : br      1870h
            -->
        </script>
        <script state="run">
            <output format="----- 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 %02X &gt;&gt;" line="19" align="center"  >
                <argument>maincpu.pb@D0000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mw@0071D = FD23            </action>
            <action>maincpu.mw@00815 = FC2B            </action>
            <action>maincpu.mw@1014C = 0A5E            </action>
            <action>maincpu.mq@01870 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01878 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01880 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01888 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01890 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01898 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@018A0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@018A8 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="skip ram/rom check">
        <script state="on">
            <action>maincpu.md@0771 = 8A0039E9</action> <!-- work ram -->
            <action>maincpu.md@07B6 = E80033E9</action> <!-- other rams -->
            <action>maincpu.md@07FB = 8E000FE9</action> <!-- rom -->
        </script>
        <script state="off">
            <action>maincpu.md@0771 = 8A4000B9</action>
            <action>maincpu.md@07B6 = E8529CBF</action>
            <action>maincpu.md@07FB = 8E3000B8</action>
        </script>
    </cheat>

</mamecheat>
airduelu.xml

Code: Select all

<!-- Air Duel (US location test, M82 hardware) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mw@1C4F4 = FE6F</action>
        </script>
        <script state="off">
            <action>maincpu.mw@1C4F4 = FFA2</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mb@12F31 = 38</action> <!-- helicopter -->
            <action>maincpu.mb@13387 = 38</action> <!-- airplane -->
        </script>
        <script state="off">
            <action>maincpu.mb@12F31 = 39</action>
            <action>maincpu.mb@13387 = 39</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter>
            <item value="0x0F0080BB">01 (slow)</item>
            <item value="0x0F0280BB">02       </item>
            <item value="0x0F0480BB">03       </item>
            <item value="0x0F0680BB">04       </item>
            <item value="0x0F0880BB">05 (fast)</item>
        </parameter>
        <script state="change">
            <!-- helicopter -->
            <action>maincpu.md@12E90 = param</action> <!-- y position -->
            <action>maincpu.md@12EC6 = param</action> <!-- x position -->
            <!-- airplane -->
            <action>maincpu.md@132E6 = param</action> <!-- y position -->
            <action>maincpu.md@1331F = param</action> <!-- x position -->
        </script>
        <script state="off">
            <action>maincpu.md@12E90 = 0F185E8B</action>
            <action>maincpu.md@12EC6 = 0F1A5E8B</action>
            <action>maincpu.md@132E6 = 0F185E8B</action>
            <action>maincpu.md@1331F = 0F1A5E8B</action>
        </script>
    </cheat>

    <cheat desc="max bullets up">
        <script state="on">
            <action>maincpu.mw@12F38 = 083C</action> <!-- helicopter -->
            <action>maincpu.mw@1338E = 083C</action> <!-- airplane -->
        </script>
        <script state="off">
            <action>maincpu.mw@12F38 = C43A</action>
            <action>maincpu.mw@1338E = C43A</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>set &quot;skip ram/rom check&quot; then reset the game (F3)</comment>
        <script state="on">
            <action>maincpu.mw@00714 = FD40            </action> <!-- disable ram ok message -->
            <action>maincpu.mw@0080C = FC48            </action> <!-- disable rom ok message -->
            <action>maincpu.mw@1014C = 1870            </action>
            <action>maincpu.mq@01870 = F874E08AC43A00E4</action>
            <action>maincpu.mq@01878 = 75FDFC800000A036</action>
            <action>maincpu.mq@01880 = 0275FEFC80C8FE02</action>
            <action>maincpu.mq@01888 = 2C0275FBFC80C0FE</action>
            <action>maincpu.mq@01890 = 10040275F7FC8010</action>
            <action>maincpu.mq@01898 = 747FFC800000A236</action>
            <action>maincpu.mq@018A0 = 20B00475BFFC8007</action>
            <action>maincpu.mq@018A8 = FFFFFFFFC4EB00E6</action>
            <!--
            1870 | E4 00       : in      al,0h      // read input
            1872 | 3A C4       : cmp     al,ah
            1874 | 8A E0       : mov     ah,al
            1876 | 74 F8       : be      1870h
            1878 | 36 A0 00 00 : mov     al,ss:[0h]
            187C | 80 FC FD    : cmp     ah,0FDh
            187F | 75 02       : bne     1883h
            1881 | FE C8       : dec     al         // decrease code -01
            1883 | 80 FC FE    : cmp     ah,0FEh
            1886 | 75 02       : bne     188Ah
            1888 | FE C0       : inc     al         // increase code +01
            188A | 80 FC FB    : cmp     ah,0FBh
            188D | 75 02       : bne     1891h
            188F | 2C 10       : sub     al,10h     // decrease code -10
            1891 | 80 FC F7    : cmp     ah,0F7h
            1894 | 75 02       : bne     1898h
            1896 | 04 10       : add     al,10h     // increase code +10
            1898 | 36 A2 00 00 : mov     ss:[0h],al
            189C | 80 FC 7F    : cmp     ah,7Fh
            189F | 74 07       : be      18A8h      // play sound
            18A1 | 80 FC BF    : cmp     ah,0BFh
            18A4 | 75 04       : bne     18AAh
            18A6 | B0 20       : mov     al,20h     // stop sound
            18A8 | E6 00       : out     0h,al      // send sound code
            18AA | EB C4       : br      1870h
            -->
        </script>
        <script state="run">
            <output format="----- 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 %02X &gt;&gt;" line="19" align="center"  >
                <argument>maincpu.pb@D0000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mw@00714 = FD2C            </action>
            <action>maincpu.mw@0080C = FC34            </action>
            <action>maincpu.mw@1014C = 0A5B            </action>
            <action>maincpu.mq@01870 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01878 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01880 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01888 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01890 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01898 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@018A0 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@018A8 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="skip ram/rom check">
        <script state="on">
            <action>maincpu.md@0768 = 8A0039E9</action> <!-- work ram -->
            <action>maincpu.md@07AD = E80033E9</action> <!-- other rams -->
            <action>maincpu.md@07F2 = 8E000FE9</action> <!-- rom -->
        </script>
        <script state="off">
            <action>maincpu.md@0768 = 8A4000B9</action>
            <action>maincpu.md@07AD = E8529CBF</action>
            <action>maincpu.md@07F2 = 8E3000B8</action>
        </script>
    </cheat>

</mamecheat>
airduelm72.xml

Code: Select all

<!-- Air Duel (World, M72 hardware) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mw@1C48B = FE6F</action>
        </script>
        <script state="off">
            <action>maincpu.mw@1C48B = FFA2</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mb@12EBD = 38</action> <!-- helicopter -->
            <action>maincpu.mb@13313 = 38</action> <!-- airplane -->
        </script>
        <script state="off">
            <action>maincpu.mb@12EBD = 39</action>
            <action>maincpu.mb@13313 = 39</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter>
            <item value="0x0F0080BB">01 (slow)</item>
            <item value="0x0F0280BB">02       </item>
            <item value="0x0F0480BB">03       </item>
            <item value="0x0F0680BB">04       </item>
            <item value="0x0F0880BB">05 (fast)</item>
        </parameter>
        <script state="change">
            <!-- helicopter -->
            <action>maincpu.md@12E1C = param</action> <!-- y position -->
            <action>maincpu.md@12E52 = param</action> <!-- x position -->
            <!-- airplane -->
            <action>maincpu.md@13272 = param</action> <!-- y position -->
            <action>maincpu.md@132AB = param</action> <!-- x position -->
        </script>
        <script state="off">
            <action>maincpu.md@12E1C = 0F185E8B</action>
            <action>maincpu.md@12E52 = 0F1A5E8B</action>
            <action>maincpu.md@13272 = 0F185E8B</action>
            <action>maincpu.md@132AB = 0F1A5E8B</action>
        </script>
    </cheat>

    <cheat desc="max bullets up">
        <script state="on">
            <action>maincpu.mw@12EC4 = 083C</action> <!-- helicopter -->
            <action>maincpu.mw@1331A = 083C</action> <!-- airplane -->
        </script>
        <script state="off">
            <action>maincpu.mw@12EC4 = C43A</action>
            <action>maincpu.mw@1331A = C43A</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <!-- you can't stop samples (0xD0-0xFF) by sound stop button -->
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@10134 = 1920            </action>
            <action>maincpu.mq@01920 = F874E08AC43A00E4</action>
            <action>maincpu.mq@01928 = 75FDFC800000A036</action>
            <action>maincpu.mq@01930 = 0275FEFC80C8FE02</action>
            <action>maincpu.mq@01938 = 2C0275FBFC80C0FE</action>
            <action>maincpu.mq@01940 = 10040275F7FC8010</action>
            <action>maincpu.mq@01948 = 757FFC800000A236</action>
            <action>maincpu.mq@01950 = B20472D03CD2330B</action>
            <action>maincpu.mq@01958 = 75BFFC80EED02CC0</action>
            <action>maincpu.mq@01960 = FFB9EB00E620B004</action>
            <!--
            1920 | E4 00       : in      al,0h      // read input
            1922 | 3A C4       : cmp     al,ah
            1924 | 8A E0       : mov     ah,al
            1926 | 74 F8       : be      1920h
            1928 | 36 A0 00 00 : mov     al,ss:[0h]
            192C | 80 FC FD    : cmp     ah,0FDh
            192F | 75 02       : bne     1933h
            1931 | FE C8       : dec     al         // decrease code -01
            1933 | 80 FC FE    : cmp     ah,0FEh
            1936 | 75 02       : bne     193Ah
            1938 | FE C0       : inc     al         // increase code +01
            193A | 80 FC FB    : cmp     ah,0FBh
            193D | 75 02       : bne     1941h
            193F | 2C 10       : sub     al,10h     // decrease code -10
            1941 | 80 FC F7    : cmp     ah,0F7h
            1944 | 75 02       : bne     1948h
            1946 | 04 10       : add     al,10h     // increase code +10
            1948 | 36 A2 00 00 : mov     ss:[0h],al
            194C | 80 FC 7F    : cmp     ah,7Fh
            194F | 75 0B       : bne     195Ch
            1951 | 33 D2       : xor     dw,dw      // play sound
            1953 | 3C D0       : cmp     al,0D0h
            1955 | 72 04       : bc      195Bh
            1957 | B2 C0       : mov     dl,0C0h    // sample
            1959 | 2C D0       : sub     al,0D0h
            195B | EE          : out     dw,al
            195C | 80 FC BF    : cmp     ah,0BFh
            195F | 75 04       : bne     1965h
            1961 | B0 20       : mov     al,20h     // stop sound
            1963 | E6 00       : out     0h,al
            1965 | EB B9       : br      1920h
            -->
        </script>
        <script state="run">
            <output format="----- 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 %02X &gt;&gt;" line="19" align="center"  >
                <argument>maincpu.pb@A0000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mw@10134 = 0B38            </action>
            <action>maincpu.mq@01920 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01928 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01930 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01938 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01940 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01948 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01950 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01958 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01960 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="skip ram/rom check">
        <script state="on">
            <action>mcu.md@066A = BA906CEB</action> <!-- work ram -->
            <action>mcu.md@06F4 = BF9044EB</action> <!-- video ram -->
            <action>mcu.md@0755 = B1905CEB</action> <!-- sprite ram -->
            <action>mcu.md@081A = B1905CEB</action> <!-- sprite ram -->
            <action>mcu.md@0892 = 8A9022EB</action> <!-- sound ram -->
            <action>mcu.md@08D5 = E89004EB</action> <!-- rom -->
        </script>
        <script state="off">
            <action>mcu.md@066A = BA55AAB8</action>
            <action>mcu.md@06F4 = BF0010E8</action>
            <action>mcu.md@0755 = B10018E8</action>
            <action>mcu.md@081A = B10018E8</action>
            <action>mcu.md@0892 = 8A0000BB</action>
            <action>mcu.md@08D5 = E8000BE8</action>
        </script>
    </cheat>

</mamecheat>
airdueljm72.xml

Code: Select all

<!-- Air Duel (Japan, M72 hardware) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mw@1C48B = FE6F</action>
        </script>
        <script state="off">
            <action>maincpu.mw@1C48B = FFA2</action>
        </script>
    </cheat>

    <cheat desc="rapid fire">
        <script state="on">
            <action>maincpu.mb@12EBD = 38</action> <!-- helicopter -->
            <action>maincpu.mb@13313 = 38</action> <!-- airplane -->
        </script>
        <script state="off">
            <action>maincpu.mb@12EBD = 39</action>
            <action>maincpu.mb@13313 = 39</action>
        </script>
    </cheat>

    <cheat desc="player speed">
        <parameter>
            <item value="0x0F0080BB">01 (slow)</item>
            <item value="0x0F0280BB">02       </item>
            <item value="0x0F0480BB">03       </item>
            <item value="0x0F0680BB">04       </item>
            <item value="0x0F0880BB">05 (fast)</item>
        </parameter>
        <script state="change">
            <!-- helicopter -->
            <action>maincpu.md@12E1C = param</action> <!-- y position -->
            <action>maincpu.md@12E52 = param</action> <!-- x position -->
            <!-- airplane -->
            <action>maincpu.md@13272 = param</action> <!-- y position -->
            <action>maincpu.md@132AB = param</action> <!-- x position -->
        </script>
        <script state="off">
            <action>maincpu.md@12E1C = 0F185E8B</action>
            <action>maincpu.md@12E52 = 0F1A5E8B</action>
            <action>maincpu.md@13272 = 0F185E8B</action>
            <action>maincpu.md@132AB = 0F1A5E8B</action>
        </script>
    </cheat>

    <cheat desc="max bullets up">
        <script state="on">
            <action>maincpu.mw@12EC4 = 083C</action> <!-- helicopter -->
            <action>maincpu.mw@1331A = 083C</action> <!-- airplane -->
        </script>
        <script state="off">
            <action>maincpu.mw@12EC4 = C43A</action>
            <action>maincpu.mw@1331A = C43A</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <!-- you can't stop samples (0xD0-0xFF) by sound stop button -->
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@10134 = 1940            </action>
            <action>maincpu.mq@01940 = F874E08AC43A00E4</action>
            <action>maincpu.mq@01948 = 75FDFC800000A036</action>
            <action>maincpu.mq@01950 = 0275FEFC80C8FE02</action>
            <action>maincpu.mq@01958 = 2C0275FBFC80C0FE</action>
            <action>maincpu.mq@01960 = 10040275F7FC8010</action>
            <action>maincpu.mq@01968 = 757FFC800000A236</action>
            <action>maincpu.mq@01970 = B20472D03CD2330B</action>
            <action>maincpu.mq@01978 = 75BFFC80EED02CC0</action>
            <action>maincpu.mq@01980 = FFB9EB00E620B004</action>
            <!--
            1940 | E4 00       : in      al,0h      // read input
            1942 | 3A C4       : cmp     al,ah
            1944 | 8A E0       : mov     ah,al
            1946 | 74 F8       : be      1940h
            1948 | 36 A0 00 00 : mov     al,ss:[0h]
            194C | 80 FC FD    : cmp     ah,0FDh
            194F | 75 02       : bne     1953h
            1951 | FE C8       : dec     al         // decrease code -01
            1953 | 80 FC FE    : cmp     ah,0FEh
            1956 | 75 02       : bne     195Ah
            1958 | FE C0       : inc     al         // increase code +01
            195A | 80 FC FB    : cmp     ah,0FBh
            195D | 75 02       : bne     1961h
            195F | 2C 10       : sub     al,10h     // decrease code -10
            1961 | 80 FC F7    : cmp     ah,0F7h
            1964 | 75 02       : bne     1968h
            1966 | 04 10       : add     al,10h     // increase code +10
            1968 | 36 A2 00 00 : mov     ss:[0h],al
            196C | 80 FC 7F    : cmp     ah,7Fh
            196F | 75 0B       : bne     197Ch
            1971 | 33 D2       : xor     dw,dw      // play sound
            1973 | 3C D0       : cmp     al,0D0h
            1975 | 72 04       : bc      197Bh
            1977 | B2 C0       : mov     dl,0C0h    // sample
            1979 | 2C D0       : sub     al,0D0h
            197B | EE          : out     dw,al
            197C | 80 FC BF    : cmp     ah,0BFh
            197F | 75 04       : bne     1985h
            1981 | B0 20       : mov     al,20h     // stop sound
            1983 | E6 00       : out     0h,al
            1985 | EB B9       : br      1940h
            -->
            <action>mcu.mw@B01 = 001A</action> <!-- disable warning message -->
        </script>
        <script state="run">
            <output format="----- 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 %02X &gt;&gt;" line="19" align="center"  >
                <argument>maincpu.pb@A0000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mw@10134 = 0B41            </action>
            <action>maincpu.mq@01940 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01948 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01950 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01958 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01960 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01968 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01970 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01978 = FFFFFFFFFFFFFFFF</action>
            <action>maincpu.mq@01980 = FFFFFFFFFFFFFFFF</action>
            <action>    mcu.mw@B01   = 001B            </action>
        </script>
    </cheat>

    <cheat desc="skip ram/rom check">
        <script state="on">
            <action>mcu.md@066A = BA906CEB</action> <!-- work ram -->
            <action>mcu.md@06F4 = BF9044EB</action> <!-- video ram -->
            <action>mcu.md@0755 = B1905CEB</action> <!-- sprite ram -->
            <action>mcu.md@081A = B1905CEB</action> <!-- sprite ram -->
            <action>mcu.md@0892 = 8A9022EB</action> <!-- sound ram -->
            <action>mcu.md@08D5 = E89004EB</action> <!-- rom -->
        </script>
        <script state="off">
            <action>mcu.md@066A = BA55AAB8</action>
            <action>mcu.md@06F4 = BF0010E8</action>
            <action>mcu.md@0755 = B10018E8</action>
            <action>mcu.md@081A = B10018E8</action>
            <action>mcu.md@0892 = 8A0000BB</action>
            <action>mcu.md@08D5 = E8000BE8</action>
        </script>
    </cheat>

</mamecheat>
  • "max bullets up" : This code causes splite flicker and slow down when you shoot with maximum shot power.
  • "sound test mode" : In airduelm72 and airdueljm72, you can't stop samples (0xD0-0xFF) by sound stop button.
jman

my wip cheat database back-up (2024/12/01 ver.)
https://u3.getuploader.com/...../download/47
downloadpass : jman2020
Post Reply