[megadrij/juuouki] Altered Beast/Juuouki

This forum is for posting cheats for any non-arcade game in M.A.M.E. ( aka the M.E.S.S. games ) including any softwarelist game. Requests will be fulfilled here....but please keep the requests to the requests forum.
Post Reply
jman
Posts: 1006
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 4 times

[megadrij/juuouki] Altered Beast/Juuouki

Post by jman »

Still wip codes.

Code: Select all

<cheat desc="no hit (wip)">
	<script state="on">
		<action>mdslot:cart:rom.mw@23ea =     4e71</action>  <!-- enemy -->
		<action>mdslot:cart:rom.md@2430 = 70004e75</action>  <!-- frog -->
	</script>
	<script state="off">
		<action>mdslot:cart:rom.mw@23ea =     6436</action>
		<action>mdslot:cart:rom.md@2430 = 72003e28</action>
	</script>
</cheat>

<cheat desc="auto fire (wip)">
	<script state="on">
		<action>mdslot:cart:rom.mq@3190 = 72004eb90000cb00</action>
		<action>mdslot:cart:rom.mq@33fe = 72014eb90000cb00</action>
		<action>mdslot:cart:rom.mq@3596 = 72004eb90000cb00</action>
		<action>mdslot:cart:rom.mq@cb00 = 3038b1901038b190</action>
		<action>mdslot:cart:rom.mq@cb08 = 4a01660608000006</action>
		<action>mdslot:cart:rom.mq@cb10 = 4e75080000044e75</action>
		<!--
		3190 | 7200 4eb9 0000 cb00 : moveq  #$0,D1 / jsr $cb00.l
		33fe | 7201 4eb9 0000 cb00 : moveq  #$1,D1 / jsr $cb00.l
		3596 | 7200 4eb9 0000 cb00 : moveq  #$0,D1 / jsr $cb00.l
		cb00 | 3038 b190           : move.w $b190.w,D0
		cb04 | 1038 b190           : move.b $b190.w,D0
		cb08 | 4a01                : tst.b  D1
		cb0a | 6606                : bne    $cb12
		cb0c | 0800 0006           : btst   #$6,D0
		cb10 | 4e75                : rts
		cb12 | 0800 0004           : btst   #$4,D0
		cb16 | 4e75                : rts
		-->
	</script>
	<script state="off">
		<action>mdslot:cart:rom.mq@3190 = 3038b19008000006</action>
		<action>mdslot:cart:rom.mq@33fe = 3038b19008000004</action>
		<action>mdslot:cart:rom.mq@3596 = 3038b19008000006</action>
		<action>mdslot:cart:rom.mq@cb00 = ffffffffffffffff</action>
		<action>mdslot:cart:rom.mq@cb08 = ffffffffffffffff</action>
		<action>mdslot:cart:rom.mq@cb10 = ffffffffffffffff</action>
	</script>
</cheat>

<cheat desc="attack speed up (wip)">
	<script state="on">
		<!-- main routine -->
		<action>mdslot:cart:rom.mq@3cac = 4eb90000ca805228</action>
		<action>mdslot:cart:rom.mq@ca80 = 117c000100127208</action>
		<action>mdslot:cart:rom.mq@ca88 = 45fa0012b01a670a</action>
		<action>mdslot:cart:rom.mq@ca90 = 51c9fffa11690001</action>
		<action>mdslot:cart:rom.md@ca98 =         00124e75</action>
		<!--
		3cac | 4eb9 0000 ca80 : jsr    $ca80.l
		ca80 | 117c 0001 0012 : move.b #$1,($12,A0)
		ca86 | 7208           : moveq  #$8,D1
		ca88 | 45fa 0012      : lea    ($12,PC);($ca9c),A2 // set address for action table
		ca8c | b01a           : cmp.b  (A2)+,D0            // read table
		ca8e | 670a           : beq    $ca9a
		ca90 | 51c9 fffa      : dbra   D1,$ca8c
		ca94 | 1169 0001 0012 : move.b ($1,A1),($12,A0)
		ca9a | 4e75           : rts
		-->
		<!-- action table -->
		<action>mdslot:cart:rom.mq@ca9c = 0c10181c585c6468</action>
		<!-- last blow -->
		<action>mdslot:cart:rom.mb@320d =               02</action> <!-- punch -->
		<action>mdslot:cart:rom.mb@328f =               02</action> <!-- kick -->
		<action>mdslot:cart:rom.mb@35e3 =               02</action> <!-- crouch punch -->
		<action>mdslot:cart:rom.mb@364b =               02</action> <!-- crouch kick -->
		<action>mdslot:cart:rom.mb@343f =               02</action> <!-- jump punch -->
		<action>mdslot:cart:rom.mb@3499 =               02</action> <!-- jump kick -->
	</script>
	<script state="off">
		<action>mdslot:cart:rom.mq@3cac = 1169000100125228</action>
		<action>mdslot:cart:rom.mq@ca80 = ffffffffffffffff</action>
		<action>mdslot:cart:rom.mq@ca88 = ffffffffffffffff</action>
		<action>mdslot:cart:rom.mq@ca90 = ffffffffffffffff</action>
		<action>mdslot:cart:rom.md@ca98 = ffffffffffffffff</action>
		<action>mdslot:cart:rom.mq@ca9c = ffffffffffffffff</action>
		<action>mdslot:cart:rom.mb@320d =             0x0a</action>
		<action>mdslot:cart:rom.mb@328f =             0x0b</action>
		<action>mdslot:cart:rom.mb@35e3 =             0x0a</action>
		<action>mdslot:cart:rom.mb@364b =             0x0b</action>
		<action>mdslot:cart:rom.mb@343f =             0x08</action>
		<action>mdslot:cart:rom.mb@3499 =             0x08</action>
	</script>
</cheat>

<cheat desc="skip rom check (wip)">
	<script state="on">
		<action>mdslot:cart:rom.mw@a5ee = 6042</action>
	</script>
	<script state="off">
		<action>mdslot:cart:rom.mw@a5ee = 0012</action>
	</script>
</cheat>
jman

my wip cheat database back-up (2024/09/06 ver.)
https://u11.getuploader.com/uploader/download/1589
jman
Posts: 1006
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 4 times

[megadriv/altbeast]+ Altered Beast/Juuouki

Post by jman »

megadriv/altbeast.xml

Code: Select all

<!-- Altered Beast (Europe, USA) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>mdslot:cart:rom.mw@23EA = 4E71</action> <!-- attack -->
            <action>mdslot:cart:rom.mw@2430 = 60EC</action> <!-- body -->
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mw@23EA = 6436</action>
            <action>mdslot:cart:rom.mw@2430 = 7200</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <!-- stand -->
            <action>mdslot:cart:rom.mb@3197 = 0E</action> <!-- punch -->
            <action>mdslot:cart:rom.mb@319F = 0C</action> <!-- kick -->
            <!-- jump -->
            <action>mdslot:cart:rom.mb@3405 = 0C</action> <!-- kick -->
            <action>mdslot:cart:rom.mb@340D = 0E</action> <!-- punch -->
            <!-- crouch -->
            <action>mdslot:cart:rom.mb@359D = 0E</action> <!-- punch -->
            <action>mdslot:cart:rom.mb@35A3 = 0C</action> <!-- kick -->
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mb@3197 = 06</action>
            <action>mdslot:cart:rom.mb@319F = 04</action>
            <action>mdslot:cart:rom.mb@3405 = 04</action>
            <action>mdslot:cart:rom.mb@340D = 06</action>
            <action>mdslot:cart:rom.mb@359D = 06</action>
            <action>mdslot:cart:rom.mb@35A3 = 04</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <script state="on">
            <!-- main routine -->
            <action>mdslot:cart:rom.mq@03CAC = 4EB900020A905228</action>
            <action>mdslot:cart:rom.mq@20A90 = 117C000100127208</action>
            <action>mdslot:cart:rom.mq@20A98 = 45FA0012B01A670A</action>
            <action>mdslot:cart:rom.mq@20AA0 = 51C9FFFA11690001</action>
            <action>mdslot:cart:rom.mq@20AA8 = 00124E750C10181C</action>
            <action>mdslot:cart:rom.mq@20AB0 = 585C6468FFFFFFFF</action>
            <!--
            20A90 | 117C 0001 0012 : move.b  #$1, ($12,A0)
            20A96 | 7208           : moveq   #$8, D1
            20A98 | 45FA 0012      : lea     ($12,PC) ; ($20aac), A2
            20A9C | B01A           : cmp.b   (A2)+, D0
            20A9E | 670A           : beq     $20aaa
            20AA0 | 51C9 FFFA      : dbra    D1, $20a9c
            20AA4 | 1169 0001 0012 : move.b  ($1,A1), ($12,A0)
            20AAA | 4E75           : rts
            20AAC - 20AB3          : action state table
            -->
            <!-- last blow -->
            <action>mdslot:cart:rom.mb@320D = 02</action> <!-- punch -->
            <action>mdslot:cart:rom.mb@328F = 02</action> <!-- kick -->
            <action>mdslot:cart:rom.mb@343F = 02</action> <!-- punch (jump) -->
            <action>mdslot:cart:rom.mb@3499 = 02</action> <!-- kick (jump) -->
            <action>mdslot:cart:rom.mb@35E3 = 02</action> <!-- punch (crouch) -->
            <action>mdslot:cart:rom.mb@364B = 02</action> <!-- kick (crouch) -->
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mq@03CAC = 1169000100125228</action>
            <action>mdslot:cart:rom.mq@20A90 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20A98 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AA0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.md@20AA8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AB0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mb@0320D = 0A              </action>
            <action>mdslot:cart:rom.mb@0328F = B               </action>
            <action>mdslot:cart:rom.mb@0343F = 08              </action>
            <action>mdslot:cart:rom.mb@03499 = 08              </action>
            <action>mdslot:cart:rom.mb@035E3 = 0A              </action>
            <action>mdslot:cart:rom.mb@0364B = B               </action>
        </script>
    </cheat>

    <cheat desc="sound test mode (test)">
        <!-- music : 0x01 - 0x0e, sfx : 0x20 - 0x42, voice : 0x61 and 0x71 - 0x7a -->
        <!-- you can't stop voices by sound stop button -->
        <comment>set &quot;skip rom check&quot; then reset the game (F3)</comment>
        <script state="on">
            <action>mdslot:cart:rom.mq@0A82C = 4EF900020AC04E71</action>
            <action>mdslot:cart:rom.mq@20AC0 = 41F8800012001038</action>
            <action>mdslot:cart:rom.mq@20AC8 = B144B20067F60C00</action>
            <action>mdslot:cart:rom.mq@20AD0 = 0004660253100C00</action>
            <action>mdslot:cart:rom.mq@20AD8 = 0008660252100C00</action>
            <action>mdslot:cart:rom.mq@20AE0 = 0002660404100010</action>
            <action>mdslot:cart:rom.mq@20AE8 = 0C00000166040610</action>
            <action>mdslot:cart:rom.mq@20AF0 = 00100C0000406622</action>
            <action>mdslot:cart:rom.mq@20AF8 = 42871E1000070080</action>
            <action>mdslot:cart:rom.mq@20B00 = 0C0700F06D1E0407</action>
            <action>mdslot:cart:rom.mq@20B08 = 00F0E54F31FB701C</action>
            <action>mdslot:cart:rom.mq@20B10 = FE1A31FB7018FE1E</action>
            <action>mdslot:cart:rom.mq@20B18 = 600E0C0000106608</action>
            <action>mdslot:cart:rom.mq@20B20 = 1E3C00E24EB84AC6</action>
            <action>mdslot:cart:rom.mq@20B28 = 609A800000008001</action>
            <action>mdslot:cart:rom.mq@20B30 = 0001800200018002</action>
            <action>mdslot:cart:rom.mq@20B38 = 0002800200038003</action>
            <action>mdslot:cart:rom.mq@20B40 = 0001800300028003</action>
            <action>mdslot:cart:rom.mq@20B48 = 0003800300048005</action>
            <action>mdslot:cart:rom.mq@20B50 = 000180060001FFFF</action>
            <!--
            20AC0 | 41F8 8000      : lea     $8000.w, A0            // sound code address ($ff8000)
            20AC4 | 1200           : move.b  D0, D1
            20AC6 | 1038 B144      : move.b  $b144.w, D0            // read input ($ffb144)
            20ACA | B200           : cmp.b   D0, D1
            20ACC | 67F6           : beq     $20ac4
            20ACE | 0C00 0004      : cmpi.b  #$4, D0
            20AD2 | 6602           : bne     $20ad6
            20AD4 | 5310           : subq.b  #1, (A0)               // decrease code -01
            20AD6 | 0C00 0008      : cmpi.b  #$8, D0
            20ADA | 6602           : bne     $20ade
            20ADC | 5210           : addq.b  #1, (A0)               // increase code +01
            20ADE | 0C00 0002      : cmpi.b  #$2, D0
            20AE2 | 6604           : bne     $20ae8
            20AE4 | 0410 0010      : subi.b  #$10, (A0)             // decrease code -10
            20AE8 | 0C00 0001      : cmpi.b  #$1, D0
            20AEC | 6604           : bne     $20af2
            20AEE | 0610 0010      : addi.b  #$10, (A0)             // increase code +10
            20AF2 | 0C00 0040      : cmpi.b  #$40, D0
            20AF6 | 6622           : bne     $20b1a
            20AF8 | 4287           : clr.l   D7                     // play sound
            20AFA | 1E10           : move.b  (A0), D7
            20AFC | 0007 0080      : ori.b   #$80, D7
            20B00 | 0C07 00F0      : cmpi.b  #-$10, D7
            20B04 | 6D1E           : blt     $20b24
            20B06 | 0407 00F0      : subi.b  #-$10, D7              // voice
            20B0A | E54F           : lsl.w   #2, D7
            20B0C | 31FB 701C FE1A : move.w  ($1c,PC,D7.w), $fe1a.w
            20B12 | 31FB 7018 FE1E : move.w  ($18,PC,D7.w), $fe1e.w
            20B18 | 600E           : bra     $20b28
            20B1A | 0C00 0010      : cmpi.b  #$10, D0
            20B1E | 6608           : bne     $20b28
            20B20 | 1E3C 00E2      : move.b  #$e2, D7               // stop sound
            20B24 | 4EB8 4AC6      : jsr     $4ac6.w                // send sound code
            20B28 | 609A           : bra     $20ac4
            20B2A - 20B55          : voice parameter table
            -->
        </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@FF8000</argument>
            </output>
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mq@0A82C = 4EBAA0C44EBAF5B8</action>
            <action>mdslot:cart:rom.mq@20AC0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AC8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AD0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AD8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AE0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AE8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AF0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AF8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B00 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B08 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B10 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B18 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B20 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B28 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B30 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B38 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B40 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B48 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B50 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B58 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="skip rom check">
        <script state="on">
            <action>mdslot:cart:rom.mw@A5F4 = 603C</action>
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mw@A5F4 = 2210</action>
        </script>
    </cheat>

</mamecheat>
megadriv/juuouki.xml

Code: Select all

<!-- Juuouki (Japan, v1.1) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>mdslot:cart:rom.mw@23EA = 4E71</action> <!-- attack -->
            <action>mdslot:cart:rom.mw@2430 = 60EC</action> <!-- body -->
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mw@23EA = 6436</action>
            <action>mdslot:cart:rom.mw@2430 = 7200</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <!-- stand -->
            <action>mdslot:cart:rom.mb@3197 = 0E</action> <!-- punch -->
            <action>mdslot:cart:rom.mb@319F = 0C</action> <!-- kick -->
            <!-- jump -->
            <action>mdslot:cart:rom.mb@3405 = 0C</action> <!-- kick -->
            <action>mdslot:cart:rom.mb@340D = 0E</action> <!-- punch -->
            <!-- crouch -->
            <action>mdslot:cart:rom.mb@359D = 0E</action> <!-- punch -->
            <action>mdslot:cart:rom.mb@35A3 = 0C</action> <!-- kick -->
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mb@3197 = 06</action>
            <action>mdslot:cart:rom.mb@319F = 04</action>
            <action>mdslot:cart:rom.mb@3405 = 04</action>
            <action>mdslot:cart:rom.mb@340D = 06</action>
            <action>mdslot:cart:rom.mb@359D = 06</action>
            <action>mdslot:cart:rom.mb@35A3 = 04</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <script state="on">
            <!-- main routine -->
            <action>mdslot:cart:rom.mq@03CAC = 4EB900020A905228</action>
            <action>mdslot:cart:rom.mq@20A90 = 117C000100127208</action>
            <action>mdslot:cart:rom.mq@20A98 = 45FA0012B01A670A</action>
            <action>mdslot:cart:rom.mq@20AA0 = 51C9FFFA11690001</action>
            <action>mdslot:cart:rom.mq@20AA8 = 00124E750C10181C</action>
            <action>mdslot:cart:rom.mq@20AB0 = 585C6468FFFFFFFF</action>
            <!--
            20A90 | 117C 0001 0012 : move.b  #$1, ($12,A0)
            20A96 | 7208           : moveq   #$8, D1
            20A98 | 45FA 0012      : lea     ($12,PC) ; ($20aac), A2
            20A9C | B01A           : cmp.b   (A2)+, D0
            20A9E | 670A           : beq     $20aaa
            20AA0 | 51C9 FFFA      : dbra    D1, $20a9c
            20AA4 | 1169 0001 0012 : move.b  ($1,A1), ($12,A0)
            20AAA | 4E75           : rts
            20AAC - 20AB3          : action state table
            -->
            <!-- last blow -->
            <action>mdslot:cart:rom.mb@320D = 02</action> <!-- punch -->
            <action>mdslot:cart:rom.mb@328F = 02</action> <!-- kick -->
            <action>mdslot:cart:rom.mb@343F = 02</action> <!-- punch (jump) -->
            <action>mdslot:cart:rom.mb@3499 = 02</action> <!-- kick (jump) -->
            <action>mdslot:cart:rom.mb@35E3 = 02</action> <!-- punch (crouch) -->
            <action>mdslot:cart:rom.mb@364B = 02</action> <!-- kick (crouch) -->
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mq@03CAC = 1169000100125228</action>
            <action>mdslot:cart:rom.mq@20A90 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20A98 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AA0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.md@20AA8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AB0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mb@0320D = 0A              </action>
            <action>mdslot:cart:rom.mb@0328F = B               </action>
            <action>mdslot:cart:rom.mb@0343F = 08              </action>
            <action>mdslot:cart:rom.mb@03499 = 08              </action>
            <action>mdslot:cart:rom.mb@035E3 = 0A              </action>
            <action>mdslot:cart:rom.mb@0364B = B               </action>
        </script>
    </cheat>

    <cheat desc="sound test mode (test)">
        <!-- music : 0x01 - 0x0e, sfx : 0x20 - 0x42, voice : 0x61 and 0x71 - 0x7a -->
        <!-- you can't stop voices by sound stop button -->
        <comment>set &quot;skip rom check&quot; then reset the game (F3)</comment>
        <script state="on">
            <action>mdslot:cart:rom.mq@0A82C = 4EF900020AC04E71</action>
            <action>mdslot:cart:rom.mq@20AC0 = 41F8800012001038</action>
            <action>mdslot:cart:rom.mq@20AC8 = B144B20067F60C00</action>
            <action>mdslot:cart:rom.mq@20AD0 = 0004660253100C00</action>
            <action>mdslot:cart:rom.mq@20AD8 = 0008660252100C00</action>
            <action>mdslot:cart:rom.mq@20AE0 = 0002660404100010</action>
            <action>mdslot:cart:rom.mq@20AE8 = 0C00000166040610</action>
            <action>mdslot:cart:rom.mq@20AF0 = 00100C0000406622</action>
            <action>mdslot:cart:rom.mq@20AF8 = 42871E1000070080</action>
            <action>mdslot:cart:rom.mq@20B00 = 0C0700F06D1E0407</action>
            <action>mdslot:cart:rom.mq@20B08 = 00F0E54F31FB701C</action>
            <action>mdslot:cart:rom.mq@20B10 = FE1A31FB7018FE1E</action>
            <action>mdslot:cart:rom.mq@20B18 = 600E0C0000106608</action>
            <action>mdslot:cart:rom.mq@20B20 = 1E3C00E24EB84AC6</action>
            <action>mdslot:cart:rom.mq@20B28 = 609A800000008001</action>
            <action>mdslot:cart:rom.mq@20B30 = 0001800200018002</action>
            <action>mdslot:cart:rom.mq@20B38 = 0002800200038003</action>
            <action>mdslot:cart:rom.mq@20B40 = 0001800300028003</action>
            <action>mdslot:cart:rom.mq@20B48 = 0003800300048005</action>
            <action>mdslot:cart:rom.mq@20B50 = 000180060001FFFF</action>
            <!--
            20AC0 | 41F8 8000      : lea     $8000.w, A0            // sound code address ($ff8000)
            20AC4 | 1200           : move.b  D0, D1
            20AC6 | 1038 B144      : move.b  $b144.w, D0            // read input ($ffb144)
            20ACA | B200           : cmp.b   D0, D1
            20ACC | 67F6           : beq     $20ac4
            20ACE | 0C00 0004      : cmpi.b  #$4, D0
            20AD2 | 6602           : bne     $20ad6
            20AD4 | 5310           : subq.b  #1, (A0)               // decrease code -01
            20AD6 | 0C00 0008      : cmpi.b  #$8, D0
            20ADA | 6602           : bne     $20ade
            20ADC | 5210           : addq.b  #1, (A0)               // increase code +01
            20ADE | 0C00 0002      : cmpi.b  #$2, D0
            20AE2 | 6604           : bne     $20ae8
            20AE4 | 0410 0010      : subi.b  #$10, (A0)             // decrease code -10
            20AE8 | 0C00 0001      : cmpi.b  #$1, D0
            20AEC | 6604           : bne     $20af2
            20AEE | 0610 0010      : addi.b  #$10, (A0)             // increase code +10
            20AF2 | 0C00 0040      : cmpi.b  #$40, D0
            20AF6 | 6622           : bne     $20b1a
            20AF8 | 4287           : clr.l   D7                     // play sound
            20AFA | 1E10           : move.b  (A0), D7
            20AFC | 0007 0080      : ori.b   #$80, D7
            20B00 | 0C07 00F0      : cmpi.b  #-$10, D7
            20B04 | 6D1E           : blt     $20b24
            20B06 | 0407 00F0      : subi.b  #-$10, D7              // voice
            20B0A | E54F           : lsl.w   #2, D7
            20B0C | 31FB 701C FE1A : move.w  ($1c,PC,D7.w), $fe1a.w
            20B12 | 31FB 7018 FE1E : move.w  ($18,PC,D7.w), $fe1e.w
            20B18 | 600E           : bra     $20b28
            20B1A | 0C00 0010      : cmpi.b  #$10, D0
            20B1E | 6608           : bne     $20b28
            20B20 | 1E3C 00E2      : move.b  #$e2, D7               // stop sound
            20B24 | 4EB8 4AC6      : jsr     $4ac6.w                // send sound code
            20B28 | 609A           : bra     $20ac4
            20B2A - 20B55          : voice parameter table
            -->
        </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@FF8000</argument>
            </output>
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mq@0A82C = 4EBAA0C44EBAF5B8</action>
            <action>mdslot:cart:rom.mq@20AC0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AC8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AD0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AD8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AE0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AE8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AF0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AF8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B00 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B08 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B10 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B18 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B20 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B28 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B30 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B38 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B40 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B48 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B50 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B58 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

    <cheat desc="skip rom check">
        <script state="on">
            <action>mdslot:cart:rom.mw@A5F4 = 603C</action>
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mw@A5F4 = 2210</action>
        </script>
    </cheat>

</mamecheat>
megadriv/juuouki1.xml

Code: Select all

<!-- Juuouki (Japan) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>mdslot:cart:rom.mw@23F8 = 4E71</action> <!-- attack -->
            <action>mdslot:cart:rom.mw@2456 = 60DA</action> <!-- body -->
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mw@23F8 = 643C</action>
            <action>mdslot:cart:rom.mw@2456 = 6504</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <!-- stand -->
            <action>mdslot:cart:rom.mb@31CB = 0E</action> <!-- punch -->
            <action>mdslot:cart:rom.mb@31D3 = 0C</action> <!-- kick -->
            <!-- jump -->
            <action>mdslot:cart:rom.mb@3439 = 0C</action> <!-- kick -->
            <action>mdslot:cart:rom.mb@3441 = 0E</action> <!-- punch -->
            <!-- crouch -->
            <action>mdslot:cart:rom.mb@35D1 = 0E</action> <!-- punch -->
            <action>mdslot:cart:rom.mb@35D7 = 0C</action> <!-- kick -->
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mb@31CB = 06</action>
            <action>mdslot:cart:rom.mb@31D3 = 04</action>
            <action>mdslot:cart:rom.mb@3439 = 04</action>
            <action>mdslot:cart:rom.mb@3441 = 06</action>
            <action>mdslot:cart:rom.mb@35D1 = 06</action>
            <action>mdslot:cart:rom.mb@35D7 = 04</action>
        </script>
    </cheat>

    <cheat desc="attack speed up">
        <script state="on">
            <!-- main routine -->
            <action>mdslot:cart:rom.mq@03CDC = 4EB900020A905228</action>
            <action>mdslot:cart:rom.mq@20A90 = 117C000100127208</action>
            <action>mdslot:cart:rom.mq@20A98 = 45FA0012B01A670A</action>
            <action>mdslot:cart:rom.mq@20AA0 = 51C9FFFA11690001</action>
            <action>mdslot:cart:rom.mq@20AA8 = 00124E750C10181C</action>
            <action>mdslot:cart:rom.mq@20AB0 = 585C6468FFFFFFFF</action>
            <!--
            20A90 | 117C 0001 0012 : move.b  #$1, ($12,A0)
            20A96 | 7208           : moveq   #$8, D1
            20A98 | 45FA 0012      : lea     ($12,PC) ; ($20aac), A2
            20A9C | B01A           : cmp.b   (A2)+, D0
            20A9E | 670A           : beq     $20aaa
            20AA0 | 51C9 FFFA      : dbra    D1, $20a9c
            20AA4 | 1169 0001 0012 : move.b  ($1,A1), ($12,A0)
            20AAA | 4E75           : rts
            20AAC - 20AB3          : action state table
            -->
            <!-- last blow -->
            <action>mdslot:cart:rom.mb@3241 = 02</action> <!-- punch -->
            <action>mdslot:cart:rom.mb@32C3 = 02</action> <!-- kick -->
            <action>mdslot:cart:rom.mb@3473 = 02</action> <!-- punch (jump) -->
            <action>mdslot:cart:rom.mb@34CD = 02</action> <!-- kick (jump) -->
            <action>mdslot:cart:rom.mb@3617 = 02</action> <!-- punch (crouch) -->
            <action>mdslot:cart:rom.mb@367F = 02</action> <!-- kick (crouch) -->
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mq@03CDC = 1169000100125228</action>
            <action>mdslot:cart:rom.mq@20A90 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20A98 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AA0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.md@20AA8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AB0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mb@03241 = 0A              </action>
            <action>mdslot:cart:rom.mb@032C3 = B               </action>
            <action>mdslot:cart:rom.mb@03473 = 08              </action>
            <action>mdslot:cart:rom.mb@034CD = 08              </action>
            <action>mdslot:cart:rom.mb@03617 = 0A              </action>
            <action>mdslot:cart:rom.mb@0367F = B               </action>
        </script>
    </cheat>

    <cheat desc="sound test mode (test)">
        <!-- music : 0x01 - 0x0e, sfx : 0x20 - 0x42, voice : 0x61 and 0x71 - 0x7a -->
        <!-- you can't stop voices by sound stop button -->
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>mdslot:cart:rom.mq@0A7C4 = 4EF900020AC04E71</action>
            <action>mdslot:cart:rom.mq@20AC0 = 41F8800012001038</action>
            <action>mdslot:cart:rom.mq@20AC8 = B144B20067F60C00</action>
            <action>mdslot:cart:rom.mq@20AD0 = 0004660253100C00</action>
            <action>mdslot:cart:rom.mq@20AD8 = 0008660252100C00</action>
            <action>mdslot:cart:rom.mq@20AE0 = 0002660404100010</action>
            <action>mdslot:cart:rom.mq@20AE8 = 0C00000166040610</action>
            <action>mdslot:cart:rom.mq@20AF0 = 00100C0000406622</action>
            <action>mdslot:cart:rom.mq@20AF8 = 42871E1000070080</action>
            <action>mdslot:cart:rom.mq@20B00 = 0C0700F06D1E0407</action>
            <action>mdslot:cart:rom.mq@20B08 = 00F0E54F31FB701C</action>
            <action>mdslot:cart:rom.mq@20B10 = FE1A31FB7018FE1C</action>
            <action>mdslot:cart:rom.mq@20B18 = 600E0C0000106608</action>
            <action>mdslot:cart:rom.mq@20B20 = 1E3C00E24EB84AB2</action>
            <action>mdslot:cart:rom.mq@20B28 = 609A800000008001</action>
            <action>mdslot:cart:rom.mq@20B30 = 0001800200018002</action>
            <action>mdslot:cart:rom.mq@20B38 = 0002800200038003</action>
            <action>mdslot:cart:rom.mq@20B40 = 0001800300028003</action>
            <action>mdslot:cart:rom.mq@20B48 = 0003800300048005</action>
            <action>mdslot:cart:rom.mq@20B50 = 000180060001FFFF</action>
            <!--
            20AC0 | 41F8 8000      : lea     $8000.w, A0            // sound code address ($ff8000)
            20AC4 | 1200           : move.b  D0, D1
            20AC6 | 1038 B144      : move.b  $b144.w, D0            // read input ($ffb144)
            20ACA | B200           : cmp.b   D0, D1
            20ACC | 67F6           : beq     $20ac4
            20ACE | 0C00 0004      : cmpi.b  #$4, D0
            20AD2 | 6602           : bne     $20ad6
            20AD4 | 5310           : subq.b  #1, (A0)               // decrease code -01
            20AD6 | 0C00 0008      : cmpi.b  #$8, D0
            20ADA | 6602           : bne     $20ade
            20ADC | 5210           : addq.b  #1, (A0)               // increase code +01
            20ADE | 0C00 0002      : cmpi.b  #$2, D0
            20AE2 | 6604           : bne     $20ae8
            20AE4 | 0410 0010      : subi.b  #$10, (A0)             // decrease code -10
            20AE8 | 0C00 0001      : cmpi.b  #$1, D0
            20AEC | 6604           : bne     $20af2
            20AEE | 0610 0010      : addi.b  #$10, (A0)             // increase code +10
            20AF2 | 0C00 0040      : cmpi.b  #$40, D0
            20AF6 | 6622           : bne     $20b1a
            20AF8 | 4287           : clr.l   D7                     // play sound
            20AFA | 1E10           : move.b  (A0), D7
            20AFC | 0007 0080      : ori.b   #$80, D7
            20B00 | 0C07 00F0      : cmpi.b  #-$10, D7
            20B04 | 6D1E           : blt     $20b24
            20B06 | 0407 00F0      : subi.b  #-$10, D7              // voice
            20B0A | E54F           : lsl.w   #2, D7
            20B0C | 31FB 701C FE1A : move.w  ($1c,PC,D7.w), $fe1a.w
            20B12 | 31FB 7018 FE1C : move.w  ($18,PC,D7.w), $fe1c.w
            20B18 | 600E           : bra     $20b28
            20B1A | 0C00 0010      : cmpi.b  #$10, D0
            20B1E | 6608           : bne     $20b28
            20B20 | 1E3C 00E2      : move.b  #$e2, D7               // stop sound
            20B24 | 4EB8 4AB2      : jsr     $4ab2.w                // send sound code
            20B28 | 609A           : bra     $20ac4
            20B2A - 20B55          : voice parameter table
            -->
        </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@FF8000</argument>
            </output>
        </script>
        <script state="off">
            <action>mdslot:cart:rom.mq@0A7C4 = 4EBAA2EA4EBAF600</action>
            <action>mdslot:cart:rom.mq@20AC0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AC8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AD0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AD8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AE0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AE8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AF0 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20AF8 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B00 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B08 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B10 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B18 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B20 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B28 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B30 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B38 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B40 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B48 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B50 = FFFFFFFFFFFFFFFF</action>
            <action>mdslot:cart:rom.mq@20B58 = FFFFFFFFFFFFFFFF</action>
        </script>
    </cheat>

</mamecheat>
"sound test mode" : Test code.
  • Sometimes no sound response when you played some codes except musics (0x01-0x0e), sfxs (0x20-0x42) and voices (0x61 and 0x71-0x7a).
  • You can't stop voices by sound stop button.
  • Played music and sfx after you play voice in some cases (for example, play 0x01 then play voice without sound stop).
jman

my wip cheat database back-up (2024/09/06 ver.)
https://u11.getuploader.com/uploader/download/1589
Post Reply