[chameleo] Chameleon
Posted: Mon Dec 13, 2021 10:03 am
Code: Select all
<cheat desc="no hit">
<script state="on">
<action>maincpu.mb@696d = 60</action> <!-- chiken/egg -->
<action>maincpu.mb@7854 = 60</action> <!-- ball -->
</script>
<script state="off">
<action>maincpu.mb@696d = a9</action>
<action>maincpu.mb@7854 = a9</action>
</script>
</cheat>
<cheat desc="player speed">
<parameter min="0x01" max="0x05" step="0x01" />
<script state="on">
<action>maincpu.mw@52b9 = 41b0</action>
<action>maincpu.mq@41b0 = 02d001a904108ea5</action>
<action>maincpu.mq@41b8 = aa685af5204800a9</action>
<action>maincpu.mq@41c0 = ffffff60f6d08aca</action>
<!--
41b0 | a5 8e : lda $8e
41b2 | 10 04 : bpl $41b8
41b4 | a9 01 : lda #$01
41b6 | d0 02 : bne $41ba
41b8 | a9 xx : lda #$xx
41ba | 48 : pha
41bb | 20 f5 5a : jsr $5af5
41be | 68 : pla
41bf | aa : tax
41c0 | ca : dex
41c1 | 8a : txa
41c2 | d0 f6 : bne $41ba
41c4 | 60 : rts
-->
</script>
<script state="change">
<action>maincpu.mb@41b9 = param</action>
</script>
<script state="off">
<action>maincpu.mw@52b9 = 5af5</action>
<action>maincpu.mq@41b0 = ffffffffffffffff</action>
<action>maincpu.mq@41b8 = ffffffffffffffff</action>
<action>maincpu.mq@41c0 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="sound test mode">
<script state="on">
<action>maincpu.mw@4090 = b1e0</action>
<action>maincpu.mq@b1e0 = 8184808600a000a2</action>
<action>maincpu.mq@b1e8 = f4f081c5a81804ad</action>
<action>maincpu.mq@b1f0 = d001c9ca01d002c9</action>
<action>maincpu.mq@b1f8 = 4c8a04d010c9e801</action>
<action>maincpu.mq@b200 = 40a905d004c9b208</action>
<action>maincpu.mq@b208 = ffffb1e44c18008d</action>
<!--
b1e0 | a2 00 : ldx #$00 // initialize sound value
b1e2 | a0 00 : ldy #$00 // initialize input value
b1e4 | 86 80 : stx $80
b1e6 | 84 81 : sty $81
b1e8 | ad 04 18 : lda $1804 // read input
b1eb | a8 : tay
b1ec | c5 81 : cmp $81
b1ee | f0 f4 : beq $b1e4
b1f0 | c9 02 : cmp #$02
b1f2 | d0 01 : bne $b1f5
b1f4 | ca : dex // decrease code
b1f5 | c9 01 : cmp #$01
b1f7 | d0 01 : bne $b1fa
b1f9 | e8 : inx // increase code
b1fa | c9 10 : cmp #$10
b1fc | d0 04 : bne $b202
b1fe | 8a : txa // play sound
b1ff | 4c 08 b2 : jmp $b208
b202 | c9 04 : cmp #$04
b204 | d0 05 : bne $b20b
b206 | a9 40 : lda #$40 // stop sound
b208 | 8d 00 18 : sta $1800
b20b | 4c e4 b1 : jmp $b1e4
-->
</script>
<script state="run">
<output format="----- chameleon 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@0080</argument>
</output>
</script>
<script state="off">
<action>maincpu.mw@4090 = 4054</action>
<action>maincpu.mq@b1e0 = ffffffffffffffff</action>
<action>maincpu.mq@b1e8 = ffffffffffffffff</action>
<action>maincpu.mq@b1f0 = ffffffffffffffff</action>
<action>maincpu.mq@b1f8 = ffffffffffffffff</action>
<action>maincpu.mq@b200 = ffffffffffffffff</action>
<action>maincpu.mq@b208 = ffffffffffffffff</action>
</script>
</cheat>
Code: Select all
<cheat desc="walk free (test)">
<script state="on">
<action>maincpu.mb@5e99 = 00</action>
<action>maincpu.mb@5ac1 = 00</action>
<action>maincpu.mb@5f63 = c8</action>
<action>maincpu.mb@5f2b = 00</action>
</script>
<script state="off">
<action>maincpu.mb@5e99 = 20</action>
<action>maincpu.mb@5ac1 = 03</action>
<action>maincpu.mb@5f63 = 00</action>
<action>maincpu.mb@5f2b = 21</action>
</script>
</cheat>