[bowmen] Bowmen

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

[bowmen] Bowmen

Post by jman »

bowmen will be added on 0.243.

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@62dd = c9</action> <!-- P2 -->
        <action>maincpu.mb@6350 = c9</action> <!-- P1 -->
    </script>
    <script state="off">
        <action>maincpu.mb@62dd = 3a</action>
        <action>maincpu.mb@6350 = 3a</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mw@4fbb = 4fbd</action> <!-- P2 punch -->
        <action>maincpu.mw@4f77 = 4f79</action> <!-- P2 weapon -->
        <action>maincpu.mw@52d6 = 52d8</action> <!-- P1 punch -->
        <action>maincpu.mw@5292 = 5294</action> <!-- P1 weapon -->
    </script>
    <script state="off">
        <action>maincpu.mw@4fbb = 4e04</action>
        <action>maincpu.mw@4f77 = 4dfc</action>
        <action>maincpu.mw@52d6 = 511f</action>
        <action>maincpu.mw@5292 = 5117</action>
    </script>
</cheat>

<cheat desc="attack speed up">
    <script state="on">
        <action>maincpu.mb@4fc5 = 0x0b</action> <!-- P2 normal -->
        <action>maincpu.mb@4fff = 0x0b</action> <!-- P2 upper -->
        <action>maincpu.mb@52e0 = 0x0b</action> <!-- P1 normal -->
        <action>maincpu.mb@531a = 0x0b</action> <!-- P1 upper -->
    </script>
    <script state="off">
        <action>maincpu.mb@4fc5 = 01</action>
        <action>maincpu.mb@4fff = 01</action>
        <action>maincpu.mb@52e0 = 01</action>
        <action>maincpu.mb@531a = 01</action>
    </script>
</cheat>

<cheat desc="timer speed">
    <parameter>
        <item value="0x7f">01 (slow)</item>
        <item value="0x5f">02       </item>
        <item value="0x3f">03       </item>
        <item value="0x1f">04       </item>
        <item value="0x01">05 (fast)</item>
    </parameter>
    <script state="change">
        <action>maincpu.mb@0fa9 = param</action>
    </script>
    <script state="off">
        <action>maincpu.mb@0fa9 = 38</action>
    </script>
</cheat>

<cheat desc="skip ram/rom check">
    <script state="on">
        <action>maincpu.mw@0849 = 0a0e</action>
    </script>
    <script state="off">
        <action>maincpu.mw@0849 = 093f</action>
    </script>
</cheat>
jman
Posts: 845
Joined: Tue Dec 01, 2020 1:24 pm

[bowmen] sound test mode

Post by jman »

Code: Select all

<cheat desc="sound test mode">
    <comment>reset the game (F3) to enter sound test mode</comment>
    <script state="on">
        <action>maincpu.md@086d =         367d90c3</action>
        <action>maincpu.mq@7d90 = 2847b801dbe10021</action>
        <action>maincpu.mq@7d98 = fefe350120fdfefa</action>
        <action>maincpu.mq@7da0 = 3e0420fbfe340120</action>
        <action>maincpu.mq@7da8 = 3e0620f7fe0618f0</action>
        <action>maincpu.mq@7db0 = 207ffe0f18778610</action>
        <action>maincpu.mq@7db8 = 0420dffe06187e03</action>
        <action>maincpu.mq@7dc0 = ffffcd1800d3073e</action>
        <!--
        7d90 | 21 00 e1 : ld  hl,$E100 // sound code address
        7d93 | db 01    : in  a,($01)  // read input
        7d95 | b8       : cp  b
        7d96 | 47       : ld  b,a
        7d97 | 28 fa    : jr  z,$7D93
        7d99 | fe fd    : cp  $FD
        7d9b | 20 01    : jr  nz,$7D9E
        7d9d | 35       : dec (hl)     // decrease code -01
        7d9e | fe fe    : cp  $FE
        7da0 | 20 01    : jr  nz,$7DA3
        7da2 | 34       : inc (hl)     // increase code +01
        7da3 | fe fb    : cp  $FB
        7da5 | 20 04    : jr  nz,$7DAB
        7da7 | 3e f0    : ld  a,$F0    // decrease code -10
        7da9 | 18 06    : jr  $7DB1
        7dab | fe f7    : cp  $F7
        7dad | 20 06    : jr  nz,$7DB5
        7daf | 3e 10    : ld  a,$10
        7db1 | 86       : add a,(hl)   // increase code +10
        7db2 | 77       : ld  (hl),a
        7db3 | 18 0f    : jr  $7DC4
        7db5 | fe 7f    : cp  $7F
        7db7 | 20 03    : jr  nz,$7DBC
        7db9 | 7e       : ld  a,(hl)   // play sound
        7dba | 18 06    : jr  $7DC2
        7dbc | fe df    : cp  $DF
        7dbe | 20 04    : jr  nz,$7DC4
        7dc0 | 3e 07    : ld  a,$07    // stop sound
        7dc2 | d3 00    : out ($00),a
        7dc4 | 18 cd    : jr  $7D93
        -->
    </script>
    <script state="run">
        <output format="----- bowmen 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="up : increase code +10"             line="13" align="center" />
        <output format="down : decrease 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@e100</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.md@086d =        36e1cc21</action>
        <action>maincpu.mq@7d90 = 000000000000000</action>
        <action>maincpu.mq@7d98 = 000000000000000</action>
        <action>maincpu.mq@7da0 = 000000000000000</action>
        <action>maincpu.mq@7da8 = 000000000000000</action>
        <action>maincpu.mq@7db0 = 000000000000000</action>
        <action>maincpu.mq@7db8 = 000000000000000</action>
        <action>maincpu.mq@7dc0 = 000000000000000</action>
    </script>
</cheat>
Post Reply