Code: Select all
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mb@1712 = 00</action>
</script>
<script state="off">
<action>maincpu.mb@1712 = c0</action>
</script>
</cheat>
<cheat desc="walk through wall">
<script state="on">
<action>maincpu.mb@15ae = 12</action>
<action>maincpu.mb@15b6 = 0a</action>
</script>
<script state="off">
<action>maincpu.mb@15ae = 3f</action>
<action>maincpu.mb@15b6 = 37</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter min="0x01" max="0x05" step="0x01" />
<script state="change">
<action>maincpu.mb@18bd = param</action> <!-- up -->
<action>maincpu.mb@18be = param</action> <!-- right -->
<action>maincpu.mb@18bf = -param</action> <!-- down -->
<action>maincpu.mb@18c0 = -param</action> <!-- left -->
</script>
<script state="off">
<action>maincpu.mb@18bd = 02</action>
<action>maincpu.mb@18be = 02</action>
<action>maincpu.mb@18bf = fe</action>
<action>maincpu.mb@18c0 = fe</action>
</script>
</cheat>
<cheat desc="move manually">
<script state="on">
<action>maincpu.mw@15de = 3e20</action>
<action>maincpu.mq@3e20 = 1663c40fe658363a</action>
<action>maincpu.mq@3e28 = ffffffffffffffc9</action>
<!--
3e20 | 3a 36 58 : ld a,($5836)
3e23 | e6 0f : and $0f
3e25 | c4 63 16 : call nz,$1663
3e28 | c9 : ret
-->
</script>
<script state="off">
<action>maincpu.mw@15de = 1663</action>
<action>maincpu.mq@3e20 = ffffffffffffffff</action>
<action>maincpu.mq@3e28 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="sound test mode">
<comment>set ram/rom check skip then reset the game (F3)</comment>
<script state="on">
<action>maincpu.md@0562 = 0e3e30c3</action>
<action>maincpu.mq@3e30 = e5d53e3311590021</action>
<action>maincpu.mq@3e38 = fec847b8e10342cd</action>
<action>maincpu.mq@3e40 = 012002fe35012008</action>
<action>maincpu.mq@3e48 = 05187e032080fe34</action>
<action>maincpu.mq@3e50 = 609032f23ec001fe</action>
<action>maincpu.mq@3e58 = ffffffffffffffc9</action>
<!--
3e30 21 00 59 : ld hl,$5900 // sound code address
3e33 11 33 3e : ld de,$3e33
3e36 d5 : push de
3e37 e5 : push hl
3e38 cd 42 03 : call $0342 // read input
3e3b e1 : pop hl
3e3c b8 : cp b
3e3d 47 : ld b,a
3e3e c8 : ret z
3e3f fe 08 : cp $08
3e41 20 01 : jr nz,$3e44
3e43 35 : dec (hl) // decrease code
3e44 fe 02 : cp $02
3e46 20 01 : jr nz,$3e49
3e48 34 : inc (hl) // increase code
3e49 fe 80 : cp $80
3e4b 20 03 : jr nz,$3e50
3e4d 7e : ld a,(hl) // play sound
3e4e 18 05 : jr $3e55
3e50 fe 01 : cp $01
3e52 c0 : ret nz
3e53 3e f2 : ld a,$f2 // stop sound
3e55 32 90 60 : ld ($6090),a // send sound code
3e58 c9 : ret
-->
</script>
<script state="run">
<output format="----- netwars 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="up : 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@5900</argument>
</output>
</script>
<script state="off">
<action>maincpu.md@0562 = 0e70003a</action>
<action>maincpu.mq@3E30 = ffffffffffffffff</action>
<action>maincpu.mq@3e38 = ffffffffffffffff</action>
<action>maincpu.mq@3E40 = ffffffffffffffff</action>
<action>maincpu.mq@3e48 = ffffffffffffffff</action>
<action>maincpu.mq@3E50 = ffffffffffffffff</action>
<action>maincpu.mq@3e58 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="skip ram/rom check">
<script state="on">
<action>maincpu.mw@0005 = 04ca</action>
</script>
<script state="off">
<action>maincpu.mw@0005 = 3c7b</action>
</script>
</cheat>