[tangramq] Tangram Q

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: 1318
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 10 times

[tangramq] Tangram Q

Post by jman »

tangramq will be added in 0.272.

RAM codes collection.

Code: Select all

<!-- Tangram Q -->
<mamecheat version="1">

    <cheat desc="Infinite Credits">
        <script state="run">
            <action>maincpu.pb@6002 = FF</action>
        </script>
    </cheat>

    <cheat desc="Infinite Time">
        <script state="run">
            <action>maincpu.pw@6186 = 0063</action>
        </script>
    </cheat>

    <cheat desc="Finish Current Round Now">
        <script state="on">
            <action>maincpu.pb@60A6 = 01</action>
        </script>
    </cheat>

    <cheat desc="P1 Infinite Lives">
        <script state="run">
            <action>maincpu.pb@6082 = 07</action>
        </script>
    </cheat>

    <cheat desc="P2 Infinite Lives">
        <script state="run">
            <action>maincpu.pb@6083 = 07</action>
        </script>
    </cheat>

</mamecheat>
"Infinite Credits" : This code doesn't change current screen to "push button" screen until you insert a credit.

ROM codes collection though WIP.

Code: Select all

<!-- Tangram Q -->
<mamecheat version="1">

    <cheat desc="all pieces always correct">
        <script state="on">
            <action>maincpu.mb@07C9 = C3</action>
        </script>
        <script state="off">
            <action>maincpu.mb@07C9 = CA</action>
        </script>
    </cheat>

    <cheat desc="sound test mode">
        <comment>reset the game (F3) to enter sound test mode</comment>
        <script state="on">
            <action>maincpu.mw@0122 = 4000            </action>
            <action>maincpu.mq@4000 = E62F80003A600021</action>
            <action>maincpu.mq@4008 = E6A8003A4F0F0F04</action>
            <action>maincpu.mq@4010 = A0003A4FB107070C</action>
            <action>maincpu.mq@4018 = 2008FEE62847B8B1</action>
            <action>maincpu.mq@4020 = FE34012004FE3501</action>
            <action>maincpu.mq@4028 = FE0618F03E042020</action>
            <action>maincpu.mq@4030 = 787786103E052010</action>
            <action>maincpu.mq@4038 = FE06187E032002FE</action>
            <action>maincpu.mq@4040 = B00032FF3E052001</action>
            <action>maincpu.mq@4048 = 000000000000B918</action>
            <!--
            4000 | 21 00 60 : ld   hl,$6000  // sound code address
            4003 | 3A 00 80 : ld   a,($8000) // read start button
            4006 | 2F       : cpl
            4007 | E6 04    : and  $04
            4009 | 0F       : rrca
            400A | 0F       : rrca
            400B | 4F       : ld   c,a
            400C | 3A 00 A8 : ld   a,($A800) // read 2P joystick
            400F | E6 0C    : and  $0C
            4011 | 07       : rlca
            4012 | 07       : rlca
            4013 | B1       : or   c
            4014 | 4F       : ld   c,a
            4015 | 3A 00 A0 : ld   a,($A000) // read other inputs
            4018 | B1       : or   c
            4019 | B8       : cp   b
            401A | 47       : ld   b,a
            401B | 28 E6    : jr   z,$4003
            401D | FE 08    : cp   $08
            401F | 20 01    : jr   nz,$4022
            4021 | 35       : dec  (hl)      // decraese code -01
            4022 | FE 04    : cp   $04
            4024 | 20 01    : jr   nz,$4027
            4026 | 34       : inc  (hl)      // increase code +01
            4027 | FE 20    : cp   $20
            4029 | 20 04    : jr   nz,$402F
            402B | 3E F0    : ld   a,$F0     // decrease code -10
            402D | 18 06    : jr   $4035
            402F | FE 10    : cp   $10
            4031 | 20 05    : jr   nz,$4038
            4033 | 3E 10    : ld   a,$10     // increase code +10
            4035 | 86       : add  a,(hl)
            4036 | 77       : ld   (hl),a
            4037 | 78       : ld   a,b
            4038 | FE 02    : cp   $02
            403A | 20 03    : jr   nz,$403F
            403C | 7E       : ld   a,(hl)    // play sound
            403D | 18 06    : jr   $4045
            403F | FE 01    : cp   $01
            4041 | 20 05    : jr   nz,$4048
            4043 | 3E FF    : ld   a,$FF     // stop sound
            4045 | 32 00 B0 : ld   ($B000),a // send sound code
            4048 | 18 B9    : jr   $4003
            -->
        </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="2P left : decrease code -10"       line="13" align="center" />
            <output format="2P right : 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 %02X &gt;&gt;" line="19" align="center"  >
                <argument>maincpu.pb@6000</argument>
            </output>
        </script>
        <script state="off">
            <action>maincpu.mw@0122 = 2BDC            </action>
            <action>maincpu.mq@4000 = 0000000000000000</action>
            <action>maincpu.mq@4008 = 0000000000000000</action>
            <action>maincpu.mq@4010 = 0000000000000000</action>
            <action>maincpu.mq@4018 = 0000000000000000</action>
            <action>maincpu.mq@4020 = 0000000000000000</action>
            <action>maincpu.mq@4028 = 0000000000000000</action>
            <action>maincpu.mq@4030 = 0000000000000000</action>
            <action>maincpu.mq@4038 = 0000000000000000</action>
            <action>maincpu.mq@4040 = 0000000000000000</action>
            <action>maincpu.mq@4048 = 0000000000000000</action>
        </script>
    </cheat>

</mamecheat>
  • "all pieces always correct" : Always correct answer even when you select wrong piece.
  • "sound test mode" : This game doesn't have up/down key so that I use left/right key for player 2 to select code ±10.
jman

my wip cheat database back-up (06/01/2025 ver.)
https://u3.getuploader.com/...../download/58
downloadpass : jman2020
Post Reply