[scregg]+ Scrambled Egg

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

[scregg]+ Scrambled Egg

Post by jman »

scregg.xml

Code: Select all

<!-- Scrambled Egg -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mb@37a7 = 60</action> <!-- pressed by egg -->
            <action>maincpu.mb@4345 = 60</action> <!-- enemy 1 -->
            <action>maincpu.mb@4b51 = 60</action> <!-- enemy 2 -->
        </script>
        <script state="off">
            <action>maincpu.mb@37a7 = a5</action>
            <action>maincpu.mb@4345 = a5</action>
            <action>maincpu.mb@4b51 = a5</action>
        </script>
    </cheat>

    <cheat desc="walk through wall (test)">
        <comment>also egg too</comment>
        <script state="on">
            <action>maincpu.mb@3486 = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@3486 = 04</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mb@35e2 = c5</action>
        </script>
        <script state="off">
            <action>maincpu.mb@35e2 = 85</action>
        </script>
    </cheat>

    <cheat desc="player speed up">
        <script state="on">
            <action>maincpu.mb@332e = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@332e = 06</action>
        </script>
    </cheat>

    <cheat desc="kick speed up">
        <script state="on">
            <action>maincpu.mb@3663 = 01</action>
            <action>maincpu.mb@3667 = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@3663 = 06</action>
            <action>maincpu.mb@3667 = 03</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mb@54a0 =               00</action> <!-- enable sound -->
            <action>maincpu.mw@30a8 =             7f10</action>
            <action>maincpu.mq@7f10 = 56602001a9818458</action>
            <action>maincpu.mq@7f18 = 854029ff492003ad</action>
            <action>maincpu.mq@7f20 = 1f29ff492002ad82</action>
            <action>maincpu.mq@7f28 = a6e2f081c4a88205</action>
            <action>maincpu.mq@7f30 = 01c0ca01d002c080</action>
            <action>maincpu.mq@7f38 = 8a05d008c0e801d0</action>
            <action>maincpu.mq@7f40 = 05d004c0aa10e938</action>
            <action>maincpu.mq@7f48 = c08086aa1069188a</action>
            <action>maincpu.mq@7f50 = c0549c208a04d010</action>
            <action>maincpu.mq@7f58 = 549c2080a905d040</action>
            <action>maincpu.mq@7f60 = 114c2485238500a9</action>
            <action>maincpu.mq@7f68 = 000000000000007f</action>
            <!--
            7f10 | 58       : cli       // enable interrupt
            7f11 | 84 81    : sty $81
            7f13 | a9 01    : lda #$01
            7f15 | 20 60 56 : jsr $5660 // sound code check
            7f18 | ad 03 20 : lda $2003 // read start button
            7f1b | 49 ff    : eor #$ff
            7f1d | 29 40    : and #$40
            7f1f | 85 82    : sta $82
            7f21 | ad 02 20 : lda $2002 // read other inputs
            7f24 | 49 ff    : eor #$ff
            7f26 | 29 1f    : and #$1f
            7f28 | 05 82    : ora $82
            7f2a | a8       : tay
            7f2b | c4 81    : cpy $81
            7f2d | f0 e2    : beq $7f11
            7f2f | a6 80    : ldx $80
            7f31 | c0 02    : cpy #$02
            7f33 | d0 01    : bne $7f36
            7f35 | ca       : dex       // decrease code -01
            7f36 | c0 01    : cpy #$01
            7f38 | d0 01    : bne $7f3b
            7f3a | e8       : inx       // increase code +01
            7f3b | c0 08    : cpy #$08
            7f3d | d0 05    : bne $7f44
            7f3f | 8a       : txa       // decrease code -10
            7f40 | 38       : sec
            7f41 | e9 10    : sbc #$10
            7f43 | aa       : tax
            7f44 | c0 04    : cpy #$04
            7f46 | d0 05    : bne $7f4d
            7f48 | 8a       : txa       // increase code +10
            7f49 | 18       : clc
            7f4a | 69 10    : adc #$10
            7f4c | aa       : tax
            7f4d | 86 80    : stx $80
            7f4f | c0 10    : cpy #$10
            7f51 | d0 04    : bne $7f57
            7f53 | 8a       : txa       // play sound
            7f54 | 20 9c 54 : jsr $549c
            7f57 | c0 40    : cpy #$40
            7f59 | d0 05    : bne $7f60
            7f5b | a9 80    : lda #$80  // stop sound
            7f5d | 20 9c 54 : jsr $549c
            7f60 | a9 00    : lda #$00  // clear repeat flags
            7f62 | 85 23    : sta $23
            7f64 | 85 24    : sta $24
            7f66 | 4c 11 7f : jmp $7f11
            -->
        </script>
        <script state="run">
            <output format="----- scrambled egg 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="start : 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@0080</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mb@54a0 =               10</action>
            <action>maincpu.mw@30a8 =             6192</action>
            <action>maincpu.mq@7f10 = 0000000000000000</action>
            <action>maincpu.mq@7f18 = 0000000000000000</action>
            <action>maincpu.mq@7f20 = 0000000000000000</action>
            <action>maincpu.mq@7f28 = 0000000000000000</action>
            <action>maincpu.mq@7f30 = 0000000000000000</action>
            <action>maincpu.mq@7f38 = 0000000000000000</action>
            <action>maincpu.mq@7f40 = 0000000000000000</action>
            <action>maincpu.mq@7f48 = 0000000000000000</action>
            <action>maincpu.mq@7f50 = 0000000000000000</action>
            <action>maincpu.mq@7f58 = 0000000000000000</action>
            <action>maincpu.mq@7f60 = 0000000000000000</action>
            <action>maincpu.mq@7f68 = 0000000000000000</action>
        </script>
    </cheat>

</mamecheat>
eggs.xml

Code: Select all

<!-- Eggs (USA) -->
<mamecheat version="1">

    <cheat desc="no hit">
        <script state="on">
            <action>maincpu.mb@377a = 60</action> <!-- pressed by egg -->
            <action>maincpu.mb@432e = 60</action> <!-- enemy 1 -->
            <action>maincpu.mb@4c07 = 60</action> <!-- enemy 2 -->
        </script>
        <script state="off">
            <action>maincpu.mb@377a = a5</action>
            <action>maincpu.mb@432e = a5</action>
            <action>maincpu.mb@4c07 = a5</action>
        </script>
    </cheat>

    <cheat desc="walk through wall (test)">
        <comment>also egg too</comment>
        <script state="on">
            <action>maincpu.mb@3466 = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@3466 = 04</action>
        </script>
    </cheat>

    <cheat desc="auto fire">
        <script state="on">
            <action>maincpu.mb@35ae = c5</action>
        </script>
        <script state="off">
            <action>maincpu.mb@35ae = 85</action>
        </script>
    </cheat>

    <cheat desc="player speed up">
        <script state="on">
            <action>maincpu.mb@332d = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@332d = 06</action>
        </script>
    </cheat>

    <cheat desc="kick speed up">
        <script state="on">
            <action>maincpu.mb@363a = 01</action>
            <action>maincpu.mb@363e = 00</action>
        </script>
        <script state="off">
            <action>maincpu.mb@363a = 06</action>
            <action>maincpu.mb@363e = 03</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mb@5228 =               00</action> <!-- enable sound -->
            <action>maincpu.mw@30a8 =             7af0</action>
            <action>maincpu.mq@7af0 = 53e82001a9818458</action>
            <action>maincpu.mq@7af8 = 854029ff492003ad</action>
            <action>maincpu.mq@7b00 = 1f29ff492002ad82</action>
            <action>maincpu.mq@7b08 = a6e2f081c4a88205</action>
            <action>maincpu.mq@7b10 = 01c0ca01d002c080</action>
            <action>maincpu.mq@7b18 = 8a05d008c0e801d0</action>
            <action>maincpu.mq@7b20 = 05d004c0aa10e938</action>
            <action>maincpu.mq@7b28 = c08086aa1069188a</action>
            <action>maincpu.mq@7b30 = c05224208a04d010</action>
            <action>maincpu.mq@7b38 = 52242080a905d040</action>
            <action>maincpu.mq@7b40 = f14c2485238500a9</action>
            <action>maincpu.mq@7b48 = 000000000000007a</action>
            <!--
            7af0 | 58       : cli       // enable interrupt
            7af1 | 84 81    : sty $81
            7af3 | a9 01    : lda #$01
            7af5 | 20 e8 53 : jsr $53e8 // sound code check
            7af8 | ad 03 20 : lda $2003 // read start button
            7afb | 49 ff    : eor #$ff
            7afd | 29 40    : and #$40
            7aff | 85 82    : sta $82
            7b01 | ad 02 20 : lda $2002 // read other inputs
            7b04 | 49 ff    : eor #$ff
            7b06 | 29 1f    : and #$1f
            7b08 | 05 82    : ora $82
            7b0a | a8       : tay
            7b0b | c4 81    : cpy $81
            7b0d | f0 e2    : beq $7af1
            7b0f | a6 80    : ldx $80
            7b11 | c0 02    : cpy #$02
            7b13 | d0 01    : bne $7b16
            7b15 | ca       : dex       // decrease code -01
            7b16 | c0 01    : cpy #$01
            7b18 | d0 01    : bne $7b1b
            7b1a | e8       : inx       // increase code +01
            7b1b | c0 08    : cpy #$08
            7b1d | d0 05    : bne $7b24
            7b1f | 8a       : txa       // decrease code -10
            7b20 | 38       : sec
            7b21 | e9 10    : sbc #$10
            7b23 | aa       : tax
            7b24 | c0 04    : cpy #$04
            7b26 | d0 05    : bne $7b2d
            7b28 | 8a       : txa       // increase code +10
            7b29 | 18       : clc
            7b2a | 69 10    : adc #$10
            7b2c | aa       : tax
            7b2d | 86 80    : stx $80
            7b2f | c0 10    : cpy #$10
            7b31 | d0 04    : bne $7b37
            7b33 | 8a       : txa       // play sound
            7b34 | 20 24 52 : jsr $5224
            7b37 | c0 40    : cpy #$40
            7b39 | d0 05    : bne $7b40
            7b3b | a9 80    : lda #$80  // stop sound
            7b3d | 20 24 52 : jsr $5224
            7b40 | a9 00    : lda #$00  // clear repeat flags
            7b42 | 85 23    : sta $23
            7b44 | 85 24    : sta $24
            7b46 | 4c 11 7f : jmp $7af1
            -->
        </script>
        <script state="run">
            <output format="----- eggs 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="start : 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@0080</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mb@5228 =               10</action>
            <action>maincpu.mw@30a8 =             5eb7</action>
            <action>maincpu.mq@7af0 = 0000000000000000</action>
            <action>maincpu.mq@7af8 = 0000000000000000</action>
            <action>maincpu.mq@7b00 = 0000000000000000</action>
            <action>maincpu.mq@7b08 = 0000000000000000</action>
            <action>maincpu.mq@7b10 = 0000000000000000</action>
            <action>maincpu.mq@7b18 = 0000000000000000</action>
            <action>maincpu.mq@7b20 = 0000000000000000</action>
            <action>maincpu.mq@7b28 = 0000000000000000</action>
            <action>maincpu.mq@7b30 = 0000000000000000</action>
            <action>maincpu.mq@7b38 = 0000000000000000</action>
            <action>maincpu.mq@7b40 = 0000000000000000</action>
            <action>maincpu.mq@7b48 = 0000000000000000</action>
        </script>
    </cheat>

</mamecheat>
Post Reply