Code: Select all
<cheat desc="no hit (wip)">
<script state="on">
<action>mycard:cart:rom.mb@2990 = c9</action> <!-- enemy (soft) -->
<action>mycard:cart:rom.mb@29a0 = c9</action> <!-- enemy (hard) -->
<action>mycard:cart:rom.mb@29be = c9</action> <!-- boss -->
</script>
<script state="off">
<action>mycard:cart:rom.mb@2990 = fd</action>
<action>mycard:cart:rom.mb@29a0 = fd</action>
<action>mycard:cart:rom.mb@29be = fd</action>
</script>
</cheat>
<cheat desc="auto fire - shot (wip)">
<script state="on">
<action>mycard:cart:rom.mb@237d = 00</action>
</script>
<script state="off">
<action>mycard:cart:rom.mb@237d = c0</action>
</script>
</cheat>
<cheat desc="player speed (wip)">
<parameter>
<item value="0x0080">01 (slow)</item>
<item value="0x0100">02 </item>
<item value="0x0200">03 </item>
<item value="0x0300">04 </item>
<item value="0x0400">05 (fast)</item>
</parameter>
<script state="change">
<action>mycard:cart:rom.mw@0d3c = -param</action> <!-- up level 1 -->
<action>mycard:cart:rom.mw@0d46 = -param</action> <!-- up level 2 -->
<action>mycard:cart:rom.mw@0d52 = param</action> <!-- down level 1 -->
<action>mycard:cart:rom.mw@0d5c = param</action> <!-- down level 2 -->
<action>mycard:cart:rom.mw@0d68 = -param</action> <!-- left level 1 -->
<action>mycard:cart:rom.mw@0d72 = -param</action> <!-- left level 2 -->
<action>mycard:cart:rom.mw@0d7e = param</action> <!-- right level 1 -->
<action>mycard:cart:rom.mw@0d88 = param</action> <!-- right level 2 -->
</script>
<script state="off">
<action>mycard:cart:rom.mw@0d3c = ff00</action>
<action>mycard:cart:rom.mw@0d46 = fe40</action>
<action>mycard:cart:rom.mw@0d52 = 0100</action>
<action>mycard:cart:rom.mw@0d5c = 01a0</action>
<action>mycard:cart:rom.mw@0d68 = ff00</action>
<action>mycard:cart:rom.mw@0d72 = fe40</action>
<action>mycard:cart:rom.mw@0d7e = 0100</action>
<action>mycard:cart:rom.mw@0d88 = 01a0</action>
</script>
</cheat>
<cheat desc="bullet speed (wip)">
<parameter>
<item value="0x01">01 (slow)</item>
<item value="0x05">02 </item>
<item value="0x0a">03 </item>
<item value="0x0f">04 </item>
<item value="0x14">05 (fast)</item>
</parameter>
<script state="change">
<action>mycard:cart:rom.mb@23e1 = -param</action>
</script>
<script state="off">
<action>mycard:cart:rom.mb@23e1 = fb</action>
</script>
</cheat>
<cheat desc="fast bomb (wip)">
<script state="on">
<action>mycard:cart:rom.mw@2428 = 7ea0</action>
<action>mycard:cart:rom.mq@7ea0 = 3e0e77fd0d77fdaf</action>
<action>mycard:cart:rom.mq@7ea8 = d6067edd1377fd22</action>
<action>mycard:cart:rom.mq@7eb0 = c92456cd0677fd2e</action>
<!--
7ea0 | af : xor a
7ea1 | fd 77 0d : ld (iy+$0d),a
7ea4 | fd 77 0e : ld (iy+$0e),a
7ea7 | 3e 22 : ld a,$22
7ea9 | fd 77 13 : ld (iy+$13),a
7eac | dd 7e 06 : ld a,(ix+$06)
7eaf | d6 2e : sub $2e
7eb1 | fd 77 06 : ld (iy+$06),a
7eb4 | cd 56 24 : call $2456
7eb7 | c9 : ret
-->
</script>
<script state="off">
<action>mycard:cart:rom.mw@2428 = 2456</action>
<action>mycard:cart:rom.mq@7ea0 = ffffffffffffffff</action>
<action>mycard:cart:rom.mq@7ea8 = ffffffffffffffff</action>
<action>mycard:cart:rom.mq@7eb0 = ffffffffffffffff</action>
</script>
</cheat>
<cheat desc="sound test mode (wip)">
<comment>reset the game (F3) to enter sound test mode</comment>
<script state="on">
<action>mycard:cart:rom.md@010c = b77ec0c3</action>
<action>mycard:cart:rom.mq@7ec0 = 22d57ec311800021</action>
<action>mycard:cart:rom.mq@7ec8 = fec86fbddcdbc100</action>
<action>mycard:cart:rom.mq@7ed0 = 0120f7fe250120fb</action>
<action>mycard:cart:rom.mq@7ed8 = 04187c0320effe24</action>
<action>mycard:cart:rom.mq@7ee0 = c9cd0032afc0dffe</action>
<!--
7ec0 | 21 00 80 : ld hl,$8000 // initialize sound and input values
7ec3 | 11 c3 7e : ld de,$7ec3
7ec6 | d5 : push de
7ec7 | 22 00 c1 : ld ($c100),hl
7eca | db dc : in a,($dc) // read input
7ecc | bd : cp l
7ecd | 6f : ld l,a
7ece | c8 : ret z
7ecf | fe fb : cp $fb
7ed1 | 20 01 : jr nz,$7ed4
7ed3 | 25 : dec h // pressed left - code decrement
7ed4 | fe f7 : cp $f7
7ed6 | 20 01 : jr nz,$7ed9
7ed8 | 24 : inc h // pressed right - code increment
7ed9 | fe ef : cp $ef
7edb | 20 03 : jr nz,$7ee0
7edd | 7c : ld a,h // pressed button 1 - play sound
7ede | 18 04 : jr $7ee4
7ee0 | fe df : cp $df
7ee2 | c0 : ret nz
7ee3 | af : xor a // pressed button 2 - stop sound
7ee4 | 32 00 cd : ld ($cd00),a // send sound code
7ee7 | c9 : ret
-->
</script>
<script state="run">
<output format="----- satellite 7 sound test mode -----" line="10" align="center" />
<output format="left : code decrement" line="11" align="center" />
<output format="right : code increment" line="12" align="center" />
<output format="button 1 : play sound" line="13" align="center" />
<output format="button 2 : 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@c101</argument>
</output>
</script>
<script state="off">
<action>mycard:cart:rom.md@010c = b7c1073a</action>
<action>mycard:cart:rom.mq@7ec0 = ffffffffffffffff</action>
<action>mycard:cart:rom.mq@7ec8 = ffffffffffffffff</action>
<action>mycard:cart:rom.mq@7ed0 = ffffffffffffffff</action>
<action>mycard:cart:rom.mq@7ed8 = ffffffffffffffff</action>
<action>mycard:cart:rom.mq@7ee0 = ffffffffffffffff</action>
</script>
</cheat>