Code: Select all
<cheat desc="auto fire - missile">
<script state="on">
<action>maincpu.md@1bc0 = 1a4e90cd</action>
<action>maincpu.mq@4e90 = 67cbc0b83ac0ee11</action>
<action>maincpu.mq@4e98 = 12afc912023e0428</action>
<action>maincpu.mq@4ea0 = 00000000000000c9</action>
<!--
4e90 | 11 ee c0 : ld de,$C0EE
4e93 | 3a b8 c0 : ld a,($C0B8)
4e96 | cb 67 : bit 4,a
4e98 | 28 04 : jr z,$4E9E
4e9a | 3e 02 : ld a,$02
4e9c | 12 : ld (de),a
4e9d | c9 : ret
4e9e | af : xor a
4e9f | 12 : ld (de),a
4ea0 | c9 : ret
-->
</script>
<script state="off">
<action>maincpu.md@1bc0 = 1ac0ee11</action>
<action>maincpu.mq@4e90 = 0000000000000000</action>
<action>maincpu.mq@4e98 = 0000000000000000</action>
<action>maincpu.mq@4ea0 = 0000000000000000</action>
</script>
</cheat>
<cheat desc="fast missile">
<script state="on">
<action>maincpu.mb@2a7d = 03</action>
<action>maincpu.mb@2a80 = 09</action>
<action>maincpu.mb@2a89 = d0</action>
</script>
<script state="off">
<action>maincpu.mb@2a7d = 00</action>
<action>maincpu.mb@2a80 = 00</action>
<action>maincpu.mb@2a89 = ff</action>
</script>
</cheat>
<cheat desc="fuel 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@0e7b = param</action>
</script>
<script state="off">
<action>maincpu.mb@0e7b = 50</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@0107 = 4eb0</action>
<action>maincpu.mq@4eb0 = 47b8e0003ac10021</action>
<action>maincpu.mq@4eb8 = fe350120f7fef928</action>
<action>maincpu.mq@4ec0 = 0320dffe340120fb</action>
<action>maincpu.mq@4ec8 = 3e0520effe06187e</action>
<action>maincpu.mq@4ed0 = 0000dd18ef0032ff</action>
<!--
4eb0 | 21 00 c1 : ld hl,$C100 // sound code address
4eb3 | 3a 00 e0 : ld a,($E000) // read input
4eb6 | b8 : cp b
4eb7 | 47 : ld b,a
4eb8 | 28 f9 : jr z,$4EB3
4eba | fe f7 : cp $F7
4ebc | 20 01 : jr nz,$4EBF
4ebe | 35 : dec (hl) // decrease code
4ebf | fe fb : cp $FB
4ec1 | 20 01 : jr nz,$4EC4
4ec3 | 34 : inc (hl) // increase code
4ec4 | fe df : cp $DF
4ec6 | 20 03 : jr nz,$4ECB
4ec8 | 7e : ld a,(hl) // play sound
4ec9 | 18 06 : jr $4ED1
4ecb | fe ef : cp $EF
4ecd | 20 05 : jr nz,$4ED4
4ecf | 3e ff : ld a,$FF // stop sound
4ed1 | 32 00 ef : ld ($EF00),a // send sound code
4ed4 | 18 dd : jr $4EB3
-->
</script>
<script state="run">
<output format="----- field combat 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="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@c100</argument>
</output>
</script>
<script state="off">
<action>maincpu.mw@0107 = 0308</action>
<action>maincpu.mq@4eb0 = 0000000000000000</action>
<action>maincpu.mq@4eb8 = 0000000000000000</action>
<action>maincpu.mq@4ec0 = 0000000000000000</action>
<action>maincpu.mq@4ec8 = 0000000000000000</action>
<action>maincpu.mq@4ed0 = 0000000000000000</action>
</script>
</cheat>