[bcruzm12] Battle Cruiser M-12
Posted: Fri Jul 30, 2021 11:29 am
Code: Select all
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mw@3f01 = 5a30</action>
<action>maincpu.mq@5a30 = aecb8077211157cd</action>
<action>maincpu.mq@5a38 = ffffffffffffffc9</action>
<!--
5a30 | cd 57 11 : call $1157
5a33 | 21 77 80 : ld hl,$8077
5a36 | cb ae : res 5,(hl)
5a38 | c9 : ret
-->
</script>
<script state="off">
<action>maincpu.mw@3f01 = 1157</action>
<action>maincpu.mq@5a30 = ffffffffffffffff</action>
<action>maincpu.mq@5a38 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter min="0x01" max="0x05" step="0x01" />
<script state="change">
<action>maincpu.mb@3fea = -param</action> <!-- left -->
<action>maincpu.mb@3fec = param</action> <!-- right -->
</script>
<script state="off">
<action>maincpu.mb@3fea = ff</action>
<action>maincpu.mb@3fec = 01</action>
</script>
</cheat>
<cheat desc="bullet speed">
<parameter min="0x01" max="0x08" step="0x01" />
<script state="change">
<action>maincpu.mb@20f3 = param</action>
</script>
<script state="off">
<action>maincpu.mb@20f3 = 02</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.mw@51de = 5a40</action>
<action>maincpu.mq@5a40 = 810021800032ff3e</action>
<action>maincpu.mq@5a48 = 23c877b8a8003a46</action>
<action>maincpu.mq@5a50 = 20c2fe350120c1fe</action>
<action>maincpu.mq@5a58 = 187e0320e0fe3401</action>
<action>maincpu.mq@5a60 = b6cdf23ec0c8fe05</action>
<action>maincpu.mq@5a68 = ffffffffffffc905</action>
<!--
5a40 | 3e ff : ld a,$ff
5a42 | 32 00 80 : ld ($8000),a
5a45 | 21 00 81 : ld hl,$8100
5a48 | 46 : ld b,(hl)
5a49 | 3a 00 a8 : ld a,($a800) // read input
5a4c | b8 : cp b
5a4d | 77 : ld (hl),a
5a4e | c8 : ret z
5a4f | 23 : inc hl
5a50 | fe c1 : cp $c1
5a52 | 20 01 : jr nz,$5a55
5a54 | 35 : dec (hl) // decrease code
5a55 | fe c2 : cp $c2
5a57 | 20 01 : jr nz,$5a5a
5a59 | 34 : inc (hl) // increase code
5a5a | fe e0 : cp $e0
5a5c | 20 03 : jr nz,$5a61
5a5e | 7e : ld a,(hl) // play sound
5a5f | 18 05 : jr $5a66
5a61 | fe c8 : cp $c8
5a63 | c0 : ret nz
5a64 | 3e f2 : ld a,$f2 // stop sound
5a66 | cd b6 05 : call $05b6
5a69 | c9 : ret
-->
</script>
<script state="run">
<output format="----- battle cruiser M-12 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@8101</argument>
</output>
</script>
<script state="off">
<action>maincpu.mw@51de = 0d48</action>
<action>maincpu.mq@5a40 = ffffffffffffffff</action>
<action>maincpu.mq@5a48 = ffffffffffffffff</action>
<action>maincpu.mq@5a50 = ffffffffffffffff</action>
<action>maincpu.mq@5a58 = ffffffffffffffff</action>
<action>maincpu.mq@5a60 = ffffffffffffffff</action>
<action>maincpu.mq@5a68 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="skip ram/rom check">
<script state="on">
<action>maincpu.mw@0006 = 0a7c</action>
</script>
<script state="off">
<action>maincpu.mw@0006 = 0170</action>
</script>
</cheat>