[daifugo] Daifugo

This forum is for posting M.A.M.E. arcade cheats. Requests will be fulfilled here....but please keep the requests to the requests forum.
Post Reply
jman
Posts: 865
Joined: Tue Dec 01, 2020 1:24 pm

[daifugo] Daifugo

Post by jman »

daifugo will be added in 0.258. Basic RAM cheats are the following.

Code: Select all

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

    <cheat desc="infinite credits">
        <script state="run">
            <action>maincpu.pb@8980 = 99</action>
        </script>
    </cheat>

    <cheat desc="P1 infinite time">
        <script state="run">
            <action>maincpu.pw@8986 = 7800</action>
        </script>
    </cheat>

    <cheat desc="P2 infinite time">
        <script state="run">
            <action>maincpu.pw@8994 = 7800</action>
        </script>
    </cheat>

    <cheat desc="P1 winning hand">
        <script state="run">
            <action>maincpu.pq@8a90 = 0034003400340034</action>
            <action>maincpu.pq@8a98 = 0034003400340034</action>
        </script>
    </cheat>

    <cheat desc="P2 winning hand">
        <script state="run">
            <action>maincpu.pq@8a48 = 0034003400340034</action>
            <action>maincpu.pq@8a50 = 0034003400340034</action>
        </script>
    </cheat>

</mamecheat>
"winning hand" fills your cards with joker.
Image
But the game is reset when you discard 5 or more cards onto the field.
Image
So it's better to discard max 4 cards (press 'M' key four times) then press 'N' key.
jman
Posts: 865
Joined: Tue Dec 01, 2020 1:24 pm

[daifugo] Daifugo (update)

Post by jman »

Code: Select all

    <cheat desc="infinite credits">
        <script state="run">
            <action>maincpu.pw@8980 = 03e7</action>
        </script>
    </cheat>

    <cheat desc="P1 winning hand">
        <script state="run">
            <action>maincpu.pq@8a90 = 0034003400340034</action>
            <action>maincpu.pq@8a98 = 0034003400340034</action>
            <action>maincpu.pb@8b4e =               08</action>
        </script>
    </cheat>

    <cheat desc="P2 winning hand">
        <script state="run">
            <action>maincpu.pq@8a48 = 0034003400340034</action>
            <action>maincpu.pq@8a50 = 0034003400340034</action>
            <action>maincpu.pb@8afa =               08</action>
        </script>
    </cheat>
  • "infinite credits" : fixed max credits.
  • "winning hand" : fixed. previous code doesn't work in playing the game so you need to set before the game starts.
The following ROM codes are wip. further test is required.

Code: Select all

    <cheat desc="sound test mode (wip)">
        <comment>set &quot;skip ram/rom check&quot; then reset the game (F3)</comment>
        <script state="on">
            <action>maincpu.md@03d6 =         227000c3</action>
            <action>maincpu.mq@7000 = 47b880003a880021</action>
            <action>maincpu.mq@7008 = fe35012001fef928</action>
            <action>maincpu.mq@7010 = 042003fe34012002</action>
            <action>maincpu.mq@7018 = 052004fe0618f03e</action>
            <action>maincpu.mq@7020 = 2007fe787786103e</action>
            <action>maincpu.mq@7028 = 6406cd8930327e07</action>
            <action>maincpu.mq@7030 = 1864dbcd032009fe</action>
            <action>maincpu.mq@7038 = 00000000000000ca</action>
            <!--
            7000 | 21 00 88 : ld   hl,$8800  // sound code address
            7003 | 3a 00 80 : ld   a,($8000) // read input
            7006 | b8       : cp   b
            7007 | 47       : ld   b,a
            7008 | 28 f9    : jr   z,$7003
            700a | fe 01    : cp   $01
            700c | 20 01    : jr   nz,$700F
            700e | 35       : dec  (hl)      // decrease code -01
            700f | fe 02    : cp   $02
            7011 | 20 01    : jr   nz,$7014
            7013 | 34       : inc  (hl)      // increase code +01
            7014 | fe 03    : cp   $03
            7016 | 20 04    : jr   nz,$701C
            7018 | 3e f0    : ld   a,$F0     // decrease code -10
            701a | 18 06    : jr   $7022
            701c | fe 04    : cp   $04
            701e | 20 05    : jr   nz,$7025
            7020 | 3e 10    : ld   a,$10     // increase code +10
            7022 | 86       : add  a,(hl)
            7023 | 77       : ld   (hl),a
            7024 | 78       : ld   a,b
            7025 | fe 07    : cp   $07
            7027 | 20 07    : jr   nz,$7030
            7029 | 7e       : ld   a,(hl)    // play sound
            702a | 32 30 89 : ld   ($8930),a
            702d | cd 06 64 : call $6406
            7030 | fe 09    : cp   $09
            7032 | 20 03    : jr   nz,$7037
            7034 | cd db 64 : call $64DB     // stop sound
            7037 | 18 ca    : jr   $7003
            -->
        </script>
        <script state="run">
            <output format="----- daifugo sound test mode -----" line="10" align="center" />
            <output format="A : decrease code -01"               line="11" align="center" />
            <output format="B : increase code +01"               line="12" align="center" />
            <output format="C : decrease code -10"               line="13" align="center" />
            <output format="D : increase code +10"               line="14" align="center" />
            <output format="E : play sound"                      line="15" align="center" />
            <output format="F : 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@8800</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.md@03d6 =         22000c21</action>
            <action>maincpu.mq@7000 = 0000000000000000</action>
            <action>maincpu.mq@7008 = 0000000000000000</action>
            <action>maincpu.mq@7010 = 0000000000000000</action>
            <action>maincpu.mq@7018 = 0000000000000000</action>
            <action>maincpu.mq@7020 = 0000000000000000</action>
            <action>maincpu.mq@7028 = 0000000000000000</action>
            <action>maincpu.mq@7030 = 0000000000000000</action>
            <action>maincpu.mq@7038 = 0000000000000000</action>
        </script>
    </cheat>

    <cheat desc="skip ram/rom check (wip)">
        <script state="on">
            <action>maincpu.md@6235 = 066382c3</action> <!-- ram/1st rom check-->
            <action>maincpu.md@0399 = 21034fcd</action> <!-- 2nd rom check -->
            <action>maincpu.md@072d = 210760c3</action> <!-- 3rd rom check -->
        </script>
        <script state="off">
            <action>maincpu.md@6235 = 06a00021</action>
            <action>maincpu.md@0399 = 210359cd</action>
            <action>maincpu.md@072d = 210750da</action>
        </script>
    </cheat>
User avatar
Pugsy
Posts: 3675
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 16 times
Contact:

Re: [daifugo] Daifugo

Post by Pugsy »

Thanks, added the RAM cheats (I've skipped the WIP cheats).
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.264 XML cheat collection (3 APRIL 2024) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/SxsQUJoT#jBdz6GLm_ ... QzFGSMms2c (ZIP Archive 3.8 MB)
Post Reply