Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mw@053da = 4e75</action> <!-- enemy -->
<action>maincpu.mw@05530 = 4e75</action> <!-- attack 1 -->
<action>maincpu.mw@0746e = 4e75</action> <!-- bat -->
<action>maincpu.mw@07578 = 4e75</action> <!-- attack 2 -->
<action>maincpu.mw@075ee = 4e75</action> <!-- fireball -->
<action>maincpu.mw@0b930 = 4e75</action> <!-- water -->
<action>maincpu.mw@0bb2a = 4e75</action> <!-- mine -->
<action>maincpu.mw@1e46a = 4e75</action> <!-- boss -->
<action>maincpu.mw@1eb4a = 4e75</action> <!-- last boss 1 -->
<action>maincpu.mw@1ef74 = 4e75</action> <!-- last boss 2 -->
</script>
<script state="off">
<action>maincpu.mw@053da = 1d7c</action>
<action>maincpu.mw@05530 = 082e</action>
<action>maincpu.mw@0746e = 082e</action>
<action>maincpu.mw@07578 = 082e</action>
<action>maincpu.mw@075ee = 6100</action>
<action>maincpu.mw@0b930 = 6000</action>
<action>maincpu.mw@0bb2a = 0440</action>
<action>maincpu.mw@1e46a = 4eb9</action>
<action>maincpu.mw@1eb4a = 422e</action>
<action>maincpu.mw@1ef74 = 4eb9</action>
</script>
</cheat>
<cheat desc="walk through wall">
<script state="on">
<action>maincpu.mb@4ed2 = 42</action>
</script>
<script state="off">
<action>maincpu.mb@4ed2 = 4a</action>
</script>
</cheat>
<cheat desc="auto fire">
<script state="on">
<action>maincpu.mq@4920 = 4eb90000f2e06700</action>
<action>maincpu.mq@f2e0 = 4eb84942102e0907</action>
<action>maincpu.mq@f2e8 = 082e000709026704</action>
<action>maincpu.mq@f2f0 = 103c00014a004e75</action>
<!--
f2e0 | 4eb8 4942 : jsr $4942.w
f2e4 | 102e 0907 : move.b ($907,A6),D0
f2e8 | 082e 0007 0902 : btst #$7,($902,A6)
f2ee | 6704 : beq $f2f4
f2f0 | 103c 0001 : move.b #$1,D0
f2f4 | 4a00 : tst.b D0
f2f6 | 4e75 : rts
-->
</script>
<script state="off">
<action>maincpu.mq@4920 = 6120102e09076700</action>
<action>maincpu.mq@f2e0 = ffffffffffffffff</action>
<action>maincpu.mq@f2e8 = ffffffffffffffff</action>
<action>maincpu.mq@f2f0 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="attack speed up">
<script state="on">
<action>maincpu.md@5b66 = 197c0002</action>
<action>maincpu.md@5b8a = 197c0002</action>
<action>maincpu.md@5ba4 = 197c0002</action>
<action>maincpu.md@5d7c = 197c0002</action>
</script>
<script state="off">
<action>maincpu.md@5b66 = 196d0001</action>
<action>maincpu.md@5b8a = 196d0002</action>
<action>maincpu.md@5ba4 = 196d0003</action>
<action>maincpu.md@5d7c = 196d000c</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@1978 = f300</action>
<action>maincpu.mq@f300 = 41ee010043f9000e</action>
<action>maincpu.mq@f308 = 000012001039000c</action>
<action>maincpu.mq@f310 = 0001b20067f40c00</action>
<action>maincpu.mq@f318 = 0008660253100c00</action>
<action>maincpu.mq@f320 = 0004660252100c00</action>
<action>maincpu.mq@f328 = 0002660404100010</action>
<action>maincpu.mq@f330 = 0c00000166040610</action>
<action>maincpu.mq@f338 = 00100c0000106606</action>
<action>maincpu.mq@f340 = 1290115000010c00</action>
<action>maincpu.mq@f348 = 0020660a14280001</action>
<action>maincpu.mq@f350 = 020200f0128260b2</action>
<!--
d930 | 41ee 0100 : lea ($100,A6),A0 // sound code address
d934 | 43f9 000e 0000 : lea $e0000.l,A1
d93a | 1200 : move.b D0,D1
d93c | 1039 000c 0001 : move.b $c0001.l,D0 // read input
d942 | b200 : cmp.b D0,D1
d944 | 67f4 : beq $d93a
d946 | 0c00 0008 : cmpi.b #$8,D0
d94a | 6602 : bne $d94e
d94c | 5310 : subq.b #1,(A0) // decrease code -01
d94e | 0c00 0004 : cmpi.b #$4,D0
d952 | 6602 : bne $d956
d954 | 5210 : addq.b #1,(A0) // increase code +01
d956 | 0c00 0002 : cmpi.b #$2,D0
d95a | 6604 : bne $d960
d95c | 0410 0010 : subi.b #$10,(A0) // decrease code -10
d960 | 0c00 0001 : cmpi.b #$1,D0
d964 | 6604 : bne $d96a
d966 | 0610 0010 : addi.b #$10,(A0) // increase code +10
d96a | 0c00 0010 : cmpi.b #$10,D0
d96e | 6606 : bne $d976
d970 | 1290 : move.b (A0),(A1) // play sound
d972 | 1150 0001 : move.b (A0),($1,A0)
d976 | 0c00 0020 : cmpi.b #$20,D0
d97a | 660a : bne $d986
d97c | 1428 0001 : move.b ($1,A0),D2 // stop sound
d980 | 0202 00f0 : andi.b #$f0,D2
d984 | 1282 : move.b D2,(A1)
d986 | 60b2 : bra $d93a
-->
</script>
<script state="run">
<output format="----- kyros no yakata 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@20100</argument>
</output>
</script>
<script state="off">
<action>maincpu.mw@1978 = 194e</action>
<action>maincpu.mq@f300 = ffffffffffffffff</action>
<action>maincpu.mq@f308 = ffffffffffffffff</action>
<action>maincpu.mq@f310 = ffffffffffffffff</action>
<action>maincpu.mq@f318 = ffffffffffffffff</action>
<action>maincpu.mq@f320 = ffffffffffffffff</action>
<action>maincpu.mq@f328 = ffffffffffffffff</action>
<action>maincpu.mq@f330 = ffffffffffffffff</action>
<action>maincpu.mq@f338 = ffffffffffffffff</action>
<action>maincpu.mq@f340 = ffffffffffffffff</action>
<action>maincpu.mq@f348 = ffffffffffffffff</action>
<action>maincpu.mq@f350 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="skip ram/rom check">
<script state="on">
<action>maincpu.mw@0438 = 043a</action>
</script>
<script state="off">
<action>maincpu.mw@0438 = 06ae</action>
</script>
</cheat>