Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@306a = c9</action> <!-- catch (enemy) -->
<action>maincpu.mb@3487 = c9</action> <!-- catch (boss) -->
<action>maincpu.mb@55d9 = c2</action> <!-- catch (final boss) -->
<action>maincpu.mw@6016 = 60d7</action> <!-- weapon -->
<action>maincpu.mb@6057 = c9</action> <!-- enemy -->
<action>maincpu.mb@7c18 = 00</action> <!-- catch (enemy in stage 5) -->
</script>
<script state="off">
<action>maincpu.mb@306a = d0</action>
<action>maincpu.mb@3487 = cd</action>
<action>maincpu.mb@55d9 = c6</action>
<action>maincpu.mw@6016 = 5fac</action>
<action>maincpu.mb@6057 = c8</action>
<action>maincpu.mb@7c18 = 65</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mw@283e = 7da0</action> <!-- stand -->
<action>maincpu.mw@2893 = 7da0</action> <!-- crouch -->
<action>maincpu.mw@28be = 7da0</action> <!-- ? -->
<action>maincpu.mw@2b04 = 7da0</action> <!-- jump -->
<action>maincpu.mq@7da0 = ffc9e0313a23f6cd</action>
<!--
7da0 | cd f6 23 : call $23F6
7da3 | 3a 31 e0 : ld a,($E031)
7da6 | c9 : ret
-->
</script>
<script state="off">
<action>maincpu.mw@283e = 23f6</action>
<action>maincpu.mw@2893 = 23f6</action>
<action>maincpu.mw@28be = 23f6</action>
<action>maincpu.mw@2b04 = 23f6</action>
<action>maincpu.mq@7da0 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="attack speed up">
<script state="on">
<action>maincpu.mb@19128 = ff</action> <!-- punch -->
<action>maincpu.mb@19149 = 7f</action> <!-- kick -->
<action>maincpu.mb@1917b = ff</action> <!-- punch (jump) -->
<action>maincpu.mb@1919c = ff</action> <!-- kick (jump) -->
<action>maincpu.mb@191c0 = 7f</action> <!-- kick (crouch) -->
<action>maincpu.mb@191d1 = ff</action> <!-- punch (crouch) -->
<action>maincpu.mb@191f5 = 7f</action> <!-- nunchaku -->
<action>maincpu.mb@19209 = 7f</action> <!-- nunchaku (crouch) -->
<action>maincpu.mb@1921a = ff</action> <!-- nunchaku (jump) -->
</script>
<script state="off">
<action>maincpu.mb@19128 = f6</action>
<action>maincpu.mb@19149 = 76</action>
<action>maincpu.mb@1917b = f7</action>
<action>maincpu.mb@1919c = f7</action>
<action>maincpu.mb@191c0 = 76</action>
<action>maincpu.mb@191d1 = f6</action>
<action>maincpu.mb@191f5 = 79</action>
<action>maincpu.mb@19209 = 79</action>
<action>maincpu.mb@1921a = f9</action>
</script>
</cheat>
<cheat desc="timer speed">
<parameter>
<item value="0xff">01 (slow)</item>
<item value="0xc0">02 </item>
<item value="0x80">03 </item>
<item value="0x40">04 </item>
<item value="0x01">05 (fast)</item>
</parameter>
<script state="change">
<action>maincpu.mb@5a20 = param</action>
</script>
<script state="off">
<action>maincpu.mb@5a20 = 5a</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@014d0 = 9830</action>
<action>maincpu.mq@1d830 = 2847b801dbe20021</action>
<action>maincpu.mq@1d838 = fefe350120fdfefa</action>
<action>maincpu.mq@1d840 = 3e0420fbfe340120</action>
<action>maincpu.mq@1d848 = 3e0620f7fe0618f0</action>
<action>maincpu.mq@1d850 = 207ffe0f18778610</action>
<action>maincpu.mq@1d858 = 0420dffe06187e03</action>
<action>maincpu.mq@1d860 = ffffcd1800d3203e</action>
<!--
9830 | 21 00 e2 : ld hl,$E200 // sound code address
9833 | db 01 : in a,($01) // read input
9835 | b8 : cp b
9836 | 47 : ld b,a
9837 | 28 fa : jr z,$9833
9839 | fe fd : cp $FD
983b | 20 01 : jr nz,$983E
983d | 35 : dec (hl) // decrease code -01
983e | fe fe : cp $FE
9840 | 20 01 : jr nz,$9843
9842 | 34 : inc (hl) // increase code +01
9843 | fe fb : cp $FB
9845 | 20 04 : jr nz,$984B
9847 | 3e f0 : ld a,$F0 // decrease code -10
9849 | 18 06 : jr $9851
984b | fe f7 : cp $F7
984d | 20 06 : jr nz,$9855
984f | 3e 10 : ld a,$10 // increase code +10
9851 | 86 : add a,(hl)
9852 | 77 : ld (hl),a
9853 | 18 0f : jr $9864
9855 | fe 7f : cp $7F
9857 | 20 03 : jr nz,$985C
9859 | 7e : ld a,(hl) // play sound
985a | 18 06 : jr $9862
985c | fe df : cp $DF
985e | 20 04 : jr nz,$9864
9860 | 3e 20 : ld a,$20 // stop sound
9862 | d3 00 : out ($00),a
9864 | 18 cd : jr $9833
-->
</script>
<script state="run">
<output format="----- vigilante 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="up : increase code +10" line="13" align="center" />
<output format="down : decrease code -10" line="14" align="center" />
<output format="button 1 : play sound" line="15" align="center" />
<output format="button 2 : stop sound" line="16" align="center" />
<output format="----------------------------" line="17" align="center" />
<output format="<< sound code %2.2X >>" line="19" align="center">
<argument>maincpu.pb@e200</argument>
</output>
</script>
<script state="off">
<action>maincpu.mw@014d0 = 1885</action>
<action>maincpu.mq@1d830 = fffffffffffffff</action>
<action>maincpu.mq@1d838 = fffffffffffffff</action>
<action>maincpu.mq@1d840 = fffffffffffffff</action>
<action>maincpu.mq@1d848 = fffffffffffffff</action>
<action>maincpu.mq@1d850 = fffffffffffffff</action>
</script>
</cheat>
<cheat desc="skip ram/rom check">
<script state="on">
<action>maincpu.mb@14d9 = 4a</action>
</script>
<script state="off">
<action>maincpu.mb@14d9 = 1d</action>
</script>
</cheat>