Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@1195 = c3</action> <!-- enemy 1 -->
<action>maincpu.mb@11ec = c3</action> <!-- enemy 2 -->
<action>maincpu.mb@c570 = c3</action> <!-- bullet (boss) -->
</script>
<script state="off">
<action>maincpu.mb@1195 = d2</action>
<action>maincpu.mb@11ec = d2</action>
<action>maincpu.mb@c570 = d2</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mb@1baa = c3</action> <!-- fire timer -->
</script>
<script state="run">
<action>maincpu.pd@3e9d = c25fcb00</action> <!-- button check -->
<action>maincpu.pb@3ebf = c1</action> <!-- fire timer -->
</script>
<script state="off">
<action>maincpu.mb@1baa = ca</action>
<action>maincpu.pd@3e9d = c208e6b6</action>
<action>maincpu.pb@3ebf = d7</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter min="0x01" max="0x05" step="0x01" />
<script state="on">
<!-- normal area -->
<action>maincpu.mw@07bc = d660</action>
<action>maincpu.mq@d660 = 10c10bfecdc50006</action>
<action>maincpu.mq@d668 = 000000000000c9f9</action>
<!--
d660 | 06 xx : ld b,$xx
d662 | c5 : push bc
d663 | cd fe 0b : call $0bfe
d666 | c1 : pop bc
d667 | 10 f9 : djnz $d662
d669 | c9 : ret
-->
<!-- boss area -->
<action>maincpu.mq@d670 = 10c139fccdc50006</action>
<action>maincpu.mq@d678 = 000000000000c9f9</action>
<!--
d670 | 06 xx : ld b,$xx
d672 | c5 : push bc
d673 | cd fc 39 : call $39fc
d676 | c1 : pop bc
d677 | 10 f9 : djnz $d672
d679 | c9 : ret
-->
</script>
<script state="change">
<action>maincpu.mb@d661 = param</action>
<action>maincpu.mb@d671 = param</action>
</script>
<script state="run">
<action>maincpu.pw@388e = d670</action>
</script>
<script state="off">
<action>maincpu.mw@07bc = 0bfe</action>
<action>maincpu.mq@d660 = 0000000000000000</action>
<action>maincpu.mq@d668 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="bullet speed">
<parameter>
<item value="0x01">01 (slow)</item>
<item value="0x03">02 </item>
<item value="0x06">03 </item>
<item value="0x09">04 </item>
<item value="0x0c">05 (fast)</item>
</parameter>
<script state="change">
<action>maincpu.mb@0d2d = param</action> <!-- normal area -->
</script>
<script state="run">
<action>maincpu.pb@3afa = param</action> <!-- boss area -->
</script>
<script state="off">
<action>maincpu.mb@0d2d = 03</action>
<action>maincpu.pb@3afa = 03</action>
</script>
</cheat>
<cheat desc="skip rom error">
<script state="on">
<action>maincpu.mw@c5be = c5c0</action> <!-- main rom -->
<action>maincpu.mw@c63d = c63f</action> <!-- extra ram -->
</script>
<script state="off">
<action>maincpu.mw@c5be = 0000</action>
<action>maincpu.mw@c63d = 0000</action>
</script>
</cheat>