[akumajou] Haunted Castle/Akuma-Jou Dracula

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

[akumajou] Haunted Castle/Akuma-Jou Dracula

Post by jman »

Code: Select all

<cheat desc="no hit">
    <script state="on">
        <action>maincpu.mb@0e7ff = 60</action> <!-- object -->
        <action>maincpu.mb@2129b = 60</action> <!-- flame -->
        <action>maincpu.mb@213a5 = 60</action> <!-- chandelier -->
    </script>
    <script state="off">
        <action>maincpu.mb@0e7ff = 63</action>
        <action>maincpu.mb@2129b = 63</action>
        <action>maincpu.mb@213a5 = 63</action>
    </script>
</cheat>

<cheat desc="auto fire">
    <script state="on">
        <action>maincpu.mq@d4d2 = a907f40029107320</action>
        <action>maincpu.mq@f400 = 26071e9013071e90</action>
        <action>maincpu.mq@f408 = 8fffffffffffffff</action>
        <!--
        d4d2 | a9 07 f4 00 : jsr  $f400
        d4d6 | 29 10       : bitb #$10
        f400 | 26 07 1e 90 : anda $1e90
        f404 | 13 07 1e 90 : ldb  $1e90
        f408 | 8f          : rts
        -->
    </script>
    <script state="off">
        <action>maincpu.mq@d4d2 = 26071e9028107320</action>
        <action>maincpu.mq@f400 = ffffffffffffffff</action>
        <action>maincpu.mq@f408 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="attack speed up">
    <script state="on">
        <action>maincpu.md@dc26 =         a907f3f0</action>
        <action>maincpu.mq@f3f0 = 10083a071e418fff</action>
        <!--
        f3f0 | 10 08       : lda #$08
        f3f2 | 3a 07 1e 41 : sta $1e41
        f3f6 | 8f          : rts
        -->
    </script>
    <script state="off">
        <action>maincpu.md@dc26 =         82071e41</action>
        <action>maincpu.mq@f3f0 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="multiple jump">
    <script state="on">
        <action>maincpu.md@d4fe =         a907f410</action>
        <action>maincpu.mq@f410 = 12071e4024fd3a07</action>
        <action>maincpu.mq@f418 = 1e4012071e408fff</action>
        <!--
        f410 | 12 07 1e 40 : lda  $1e40
        f414 | 24 fd       : anda $fd
        f416 | 3a 07 1e 40 : sta  $1e40
        f41a | 12 07 1e 40 : lda  $1e40
        f41e | 8f          : rts
        -->
    </script>
    <script state="off">
        <action>maincpu.md@d4fe =         12071e40</action>
        <action>maincpu.mq@f410 = ffffffffffffffff</action>
        <action>maincpu.mq@f418 = ffffffffffffffff</action>
    </script>
</cheat>

<cheat desc="skip rom check">
    <script state="on">
        <action>maincpu.mw@83e8 = 6048</action>
    </script>
    <script state="off">
        <action>maincpu.mw@83e8 = 1730</action>
    </script>
</cheat>
jman
Posts: 843
Joined: Tue Dec 01, 2020 1:24 pm

[akumajou] sound test mode

Post by jman »

Code: Select all

<cheat desc="sound test mode">
    <comment>set rom check skip then reset the game (F3)</comment>
    <script state="on">
        <action>maincpu.mb@8820 =               00</action> <!-- accept input -->
        <action>maincpu.mq@89ef = 13c4f4a907f42080</action>
        <action>maincpu.mq@f420 = 37c4917338350163</action>
        <action>maincpu.mq@f428 = 038ec49035026303</action>
        <action>maincpu.mq@f430 = 8bc4903508630812</action>
        <action>maincpu.mq@f438 = c4901c103ac49035</action>
        <action>maincpu.mq@f440 = 04630812c4901410</action>
        <action>maincpu.mq@f448 = 3ac4903510630512</action>
        <action>maincpu.mq@f450 = c490600535206305</action>
        <action>maincpu.mq@f458 = 80a90790d33bc491</action>
        <action>maincpu.mq@f460 = 8fffffffffffffff</action>
        <!--
        89ef | 13 c4 f4    : LDB  $f4   // read input
        89f2 | a9 07 f4 20 : JSR  $f420
        f420 | 37 c4 91    : CMPB $91
        f423 | 73 38       : BEQ  $F45D
        f425 | 35 01       : CMPB #$01
        f427 | 63 03       : BNE  $F42C
        f429 | 8e c4 90    : DEC  $90   // decrease code -01
        f42c | 35 02       : CMPB #$02
        f42e | 63 03       : BNE  $F433
        f430 | 8b c4 90    : INC  $90   // increase code +01
        f433 | 35 08       : CMPB #$08
        f435 | 63 08       : BNE  $F43F
        f437 | 12 c4 90    : LDA  $90   // decrease code -10
        f43a | 1c 10       : SUBA #$10
        f43c | 3a c4 90    : STA  $90
        f43f | 35 04       : CMPB #$04
        f441 | 63 08       : BNE  $F44B
        f443 | 12 c4 90    : LDA  $90   // increase code +10
        f446 | 14 10       : ADDA #$10
        f448 | 3a c4 90    : STA  $90
        f44b | 35 10       : CMPB #$10
        f44d | 63 05       : BNE  $F454
        f44f | 12 c4 90    : LDA  $90   // play sound
        f452 | 60 05       : BRA  $F459
        f454 | 35 20       : CMPB #$20
        f456 | 63 05       : BNE  $F45D
        f458 | 80          : CLRA       // stop sound
        f459 | a9 07 90 d3 : JSR  $90d3 // send sound code
        f45d | 3b c4 91    : STB  $91
        f460 | 8f          : RTS
        -->
    </script>
    <script state="run">
        <output format="----- akuma-jou dracula 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@1890</argument>
        </output>
    </script>
    <script state="off">
        <action>maincpu.mb@8820 =               09</action>
        <action>maincpu.mq@89ef = 8bc4c6a90790b480</action>
        <action>maincpu.mq@f420 = ffffffffffffffff</action>
        <action>maincpu.mq@f428 = ffffffffffffffff</action>
        <action>maincpu.mq@f430 = ffffffffffffffff</action>
        <action>maincpu.mq@f438 = ffffffffffffffff</action>
        <action>maincpu.mq@f440 = ffffffffffffffff</action>
        <action>maincpu.mq@f448 = ffffffffffffffff</action>
        <action>maincpu.mq@f450 = ffffffffffffffff</action>
        <action>maincpu.mq@f458 = ffffffffffffffff</action>
        <action>maincpu.mq@f460 = ffffffffffffffff</action>
    </script>
</cheat>
Post Reply