[smsj/captsilv] Captain Silver

This forum is for posting cheats for any non-arcade game in M.A.M.E. ( aka the M.E.S.S. games ) including any softwarelist game. Requests will be fulfilled here....but please keep the requests to the requests forum.
Post Reply
jman
Posts: 843
Joined: Tue Dec 01, 2020 1:24 pm

[smsj/captsilv] Captain Silver

Post by jman »

Code: Select all

<cheat desc="no hit (wip)">
	<script state="on">
		<action>slot:cart:rom.mw@6133 = c937</action>
	</script>
	<script state="off">
		<action>slot:cart:rom.mw@6133 = cbfd</action>
	</script>
</cheat>

<cheat desc="auto fire (wip)">
	<script state="on">
		<action>slot:cart:rom.md@1ce6 =         cb7f00cd</action> <!-- stand -->
		<action>slot:cart:rom.md@1ef0 =         e67f00cd</action> <!-- jump -->
		<action>slot:cart:rom.md@208d =         cb7f00cd</action> <!-- crouch -->
		<action>slot:cart:rom.md@23e4 =         cb7f00cd</action> <!-- ladder -->
		<action>slot:cart:rom.mq@7f00 = 063a4710e6c0053a</action>
		<action>slot:cart:rom.mq@7f08 = ffffffffffc9b0c0</action>
		<!--
		7f00 | 3a 05 c0 : ld  a,($c005)
		7f03 | e6 10    : and $10
		7f05 | 47       : ld  b,a
		7f06 | 3a 06 c0 : ld  a,($c006)
		7f09 | b0       : or  b
		7f0a | c9       : ret
		-->
	</script>
	<script state="off">
		<action>slot:cart:rom.md@1ce6 =         cbc0063a</action>
		<action>slot:cart:rom.md@1ef0 =         e6c0063a</action>
		<action>slot:cart:rom.md@208d =         cbc0063a</action>
		<action>slot:cart:rom.md@23e4 =         cbc0063a</action>
		<action>slot:cart:rom.mq@7f00 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@7f08 = ffffffffffffffff</action>
	</script>
</cheat>

<cheat desc="attack speed up (wip)">
	<script state="on">
		<action>slot:cart:rom.mw@228c = 0101</action>
	</script>
	<script state="off">
		<action>slot:cart:rom.mw@228c = 0202</action>
	</script>
</cheat>

<cheat desc="multiple jump (wip)">
	<script state="on">
		<action>slot:cart:rom.mw@1c60 =             7f10</action>
		<action>slot:cart:rom.mq@7f10 = 1eccca6fcbc0063a</action>
		<action>slot:cart:rom.mq@7f18 = ff1e82c38e1ccbdd</action>
		<!--
		7f10 | 3a 06 c0    : ld  a,($c006)
		7f13 | cb 6f       : bit 5,a
		7f15 | ca cc 1e    : jp  z,$1ecc
		7f18 | dd cb 1c 8e : res 1,(ix+$1c)
		7f1c | c3 82 1e    : jp  $1e82
		-->
	</script>
	<script state="off">
		<action>slot:cart:rom.mw@1c60 =             1ecc</action>
		<action>slot:cart:rom.mq@7f10 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@7f18 = ffffffffffffffff</action>
	</script>
</cheat>

<cheat desc="timer speed (wip)">
	<parameter>
		<item value="0x7f">01 (slow)</item>
		<item value="0x40">02       </item>
		<item value="0x20">03       </item>
		<item value="0x10">04       </item>
		<item value="0x00">05 (fast)</item>
	</parameter>
	<script state="change">
		<action>slot:cart:rom.mb@0e0a = param</action>
	</script>
	<script state="off">
		<action>slot:cart:rom.mb@0e0a = 20</action>
	</script>
</cheat>

<cheat desc="sound test mode(wip)">
	<comment>reset the game (F3) to enter sound test mode</comment>
	<script state="on">
		<action>slot:cart:rom.md@00db =         217f20c3</action>
		<action>slot:cart:rom.mq@7f20 = 800021dc0032013e</action>
		<action>slot:cart:rom.mq@7f28 = dbc10022d57f2811</action>
		<action>slot:cart:rom.mq@7f30 = 0120fbfec86fbddc</action>
		<action>slot:cart:rom.mq@7f38 = effe240120f7fe25</action>
		<action>slot:cart:rom.mq@7f40 = c0dffe04187c0320</action>
		<action>slot:cart:rom.mq@7f48 = ffffffc9dc0332af</action>
		<!--
		7f20 | 3e 01    : ld   a,$01
		7f22 | 32 00 dc : ld   ($dc00),a  // enable sound
		7f25 | 21 00 80 : ld   hl,$8000   // initialize sound and input values
		7f28 | 11 28 7f : ld   de,$7f28
		7f2b | d5       : push de
		7f2c | 22 00 c1 : ld   ($c100),hl
		7f2f | db dc    : in   a,($dc)    // read input
		7f31 | bd       : cp   l
		7f32 | 6f       : ld   l,a
		7f33 | c8       : ret  z
		7f34 | fe fb    : cp   $fb
		7f36 | 20 01    : jr   nz,$7f39
		7f38 | 25       : dec  h          // pressed left - code decrement
		7f39 | fe f7    : cp   $f7
		7f3b | 20 01    : jr   nz,$7f3e
		7f3d | 24       : inc  h          // pressed right - code increment
		7f3e | fe ef    : cp   $ef
		7f40 | 20 03    : jr   nz,$7f45
		7f42 | 7c       : ld   a,h        // pressed button 1 - play sound
		7f43 | 18 04    : jr   $7f49
		7f45 | fe df    : cp   $df
		7f47 | c0       : ret  nz
		7f48 | af       : xor  a          // pressed button 2 - stop sound
		7f49 | 32 03 dc : ld   ($dc03),a  // send sound code
		7f4c | c9       : ret
		-->
	</script>
	<script state="run">
		<output format="----- captain silver 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="&lt;&lt; sound code %2.2X &gt;&gt;"         line="17" align="center">
			<argument>maincpu.pb@c101</argument>
		</output>
	</script>
	<script state="off">
		<action>slot:cart:rom.md@00db =         2108d3cd</action>
		<action>slot:cart:rom.mq@7f20 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@7f28 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@7f30 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@7f38 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@7f40 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@7f48 = ffffffffffffffff</action>
	</script>
</cheat>
Post Reply