Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@6aaf = 00</action> <!-- bullet -->
<action>maincpu.mw@55cc = 55ce</action> <!-- enemy -->
</script>
<script state="off">
<action>maincpu.mb@6aaf = 0f</action>
<action>maincpu.mw@55cc = 5696</action>
</script>
</cheat>
<cheat desc="auto fire - shot">
<script state="on">
<action>maincpu.md@42b3 = 0e0020c3</action>
<action>maincpu.mq@0020 = beff323cbeff3a4f</action>
<action>maincpu.mq@0028 = 0042b6c379c84fcb</action>
<!--
0020 | 4f : ld c,a
0021 | 3a ff be : ld a,($beff)
0024 | 3c : inc a
0025 | 32 ff be : ld ($beff),a
0028 | cb 4f : bit 1,a
002a | c8 : ret z
002b | 79 : ld a,c
002c | c3 b6 42 : jp $42b6
-->
</script>
<script state="off">
<action>maincpu.md@42b3 = 0ec877cb</action>
<action>maincpu.mq@0020 = 0000000000000000</action>
<action>maincpu.mq@0020 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="walk through wall">
<script state="on">
<action>maincpu.mb@433f = 00</action>
</script>
<script state="off">
<action>maincpu.mb@433f = b1</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter min="0x01" max="0x06" step="0x01" />
<script state="on">
<action>maincpu.md@04378 = dd9f30cd</action>
<action>maincpu.md@04382 = dd9f30cd</action>
<action>maincpu.mq@17f30 = 003ec8a77a56235e</action>
<action>maincpu.mq@17f38 = ffc95744ed9f3df2</action>
<!--
9f30 | 5e : ld e,(hl)
9f31 | 23 : inc hl
9f32 | 56 : ld d,(hl)
9f33 | 7a : ld a,d
9f34 | a7 : and a
9f35 | c8 : ret z
9f36 | 3e xx : ld a,$xx
9f38 | f2 3d 9f : jp p,$9f3d
9f3b | ed 44 : neg
9f3d | 57 : ld d,a
9f3e | c9 : ret
-->
</script>
<script state="change">
<action>maincpu.mb@17f37 = param</action>
</script>
<script state="off">
<action>maincpu.md@04378 = dd56235e</action>
<action>maincpu.md@04382 = dd56235e</action>
<action>maincpu.mq@17f30 = ffffffffffffffff</action>
<action>maincpu.mq@17f38 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="direct turn">
<script state="on">
<action>maincpu.mb@4326 = 32</action>
</script>
<script state="off">
<action>maincpu.mb@4326 = 3a</action>
</script>
</cheat>
<cheat desc="sound test mode">
<comment>set rom check skip code then reset the game (F3)</comment>
<script state="on">
<action>maincpu.mq@000b0 = 9b80c3ea0032063e</action>
<action>maincpu.mq@15b80 = 22d59b8311000021</action>
<action>maincpu.mq@15b88 = c86fbde8043aa100</action>
<action>maincpu.mq@15b90 = 20fdfe250120fefe</action>
<action>maincpu.mq@15b98 = 187c0320effe2401</action>
<action>maincpu.mq@15ba0 = 0032fe3ec0dffe05</action>
<action>maincpu.mq@15ba8 = ffffffffffffc9ec</action>
<!--
00b0 | 3e 06 : ld a,$06
00b2 | 32 00 ea : ld ($ea00),a // set bank
00b5 | c3 80 9b : jp $9b80
9b80 | 21 00 00 : ld hl,$0000 // initialize sound and input values
9b83 | 11 83 9b : ld de,$9b83
9b86 | d5 : push de
9b87 | 22 00 a1 : ld ($a100),hl
9b8a | 3a 04 e8 : ld a,($e804) // read input
9b8d | bd : cp l
9b8e | 6f : ld l,a
9b8f | c8 : ret z
9b90 | fe fe : cp $fe
9b92 | 20 01 : jr nz,$9b95
9b94 | 25 : dec h // decrease code
9b95 | fe fd : cp $fd
9b97 | 20 01 : jr nz,$9b9a
9b99 | 24 : inc h // increase code
9b9a | fe ef : cp $ef
9b9c | 20 03 : jr nz,$9ba1
9b9e | 7c : ld a,h // play sound
9b9f | 18 05 : jr $9ba6
9ba1 | fe df : cp $df
9ba3 | c0 : ret nz
9ba4 | 3e fe : ld a,$fe // stop sound
9ba6 | 32 00 ec : ld ($ec00),a // send sound code
9ba9 | c9 : ret
-->
</script>
<script state="run">
<output format="----- daikaiju no gyakushu sound test mode -----" line="10" align="center" />
<output format="left : decrease code" line="11" align="center" />
<output format="right : increase code" line="12" align="center" />
<output format="button 1 : play sound" line="13" align="center" />
<output format="button 2 : stop sound" line="14" align="center" />
<output format="----------------------------" line="15" align="center" />
<output format="<< sound code %2.2X >>" line="17" align="center">
<argument>maincpu.pb@a101</argument>
</output>
</script>
<script state="off">
<action>maincpu.mq@000b0 = 86cba020210406c3</action>
<action>maincpu.mq@15b80 = ffffffffffffffff</action>
<action>maincpu.mq@15b88 = ffffffffffffffff</action>
<action>maincpu.mq@15b90 = ffffffffffffffff</action>
<action>maincpu.mq@15b98 = ffffffffffffffff</action>
<action>maincpu.mq@15ba0 = ffffffffffffffff</action>
<action>maincpu.mq@15ba8 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="skip rom check">
<script state="on">
<action>maincpu.mb@07b6 = c9</action> <!-- boot -->
<action>maincpu.mb@01cb = c9</action> <!-- ingame -->
<action>maincpu.mb@4055 = c9</action> <!-- ingame -->
<action>maincpu.mb@4203 = c9</action> <!-- ingame -->
<action>maincpu.mb@4721 = c9</action> <!-- ingame -->
<action>maincpu.mb@4c66 = c9</action> <!-- ingame -->
<action>maincpu.mb@4fca = c9</action> <!-- ingame -->
</script>
<script state="off">
<action>maincpu.mb@07b6 = 21</action>
<action>maincpu.mb@01cb = 2a</action>
<action>maincpu.mb@4055 = 2a</action>
<action>maincpu.mb@4203 = 2a</action>
<action>maincpu.mb@4721 = 2a</action>
<action>maincpu.mb@4c66 = 2a</action>
<action>maincpu.mb@4fca = 2a</action>
</script>
</cheat>