[smsj/aliensynj] Alien Syndrome

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/aliensynj] Alien Syndrome

Post by jman »

Code: Select all

<cheat desc="no hit (wip)">
	<script state="on">
		<action>slot:cart:rom.mb@024bc = 18</action> <!-- object -->
		<action>slot:cart:rom.mb@3dcd2 = 18</action> <!-- floor face ($9cd2) -->
		<action>slot:cart:rom.mb@0211d = 23</action> <!-- background -->
	</script>
	<script state="off">
		<action>slot:cart:rom.mb@024bc = 20</action>
		<action>slot:cart:rom.mb@3dcd2 = 20</action>
		<action>slot:cart:rom.mb@0211d = 0c</action>
	</script>
</cheat>

<cheat desc="auto fire (wip)">
	<script state="on">
		<action>slot:cart:rom.md@196f =         4fbdb0cd</action>
		<action>slot:cart:rom.mq@bdb0 = 573a4fcbc0023a4f</action>
		<action>slot:cart:rom.mq@bdb8 = 0006c5583a0328c5</action>
		<action>slot:cart:rom.mq@bdc0 = b079100602286fcb</action>
		<action>slot:cart:rom.mq@bdc8 = ffffffffc9d5002a</action>
		<!--
		bdb0 | 4f       : ld  c,a
		bdb1 | 3a 02 c0 : ld  a,($c002)
		bdb4 | cb 4f    : bit 1,a
		bdb6 | 3a 57 c5 : ld  a,($c557)
		bdb9 | 28 03    : jr  z,$bdbe
		bdbb | 3a 58 c5 : ld  a,($c558)
		bdbe | 06 00    : ld  b,$00
		bdc0 | cb 6f    : bit 5,a
		bdc2 | 28 02    : jr  z,$bdc6
		bdc4 | 06 10    : ld  b,$10
		bdc6 | 79       : ld  a,c
		bdc7 | b0       : or  b
		bdc8 | 2a 00 d5 : ld  hl,($d500)
		bdcb | c9       : ret
		-->
	</script>
	<script state="off">
		<action>slot:cart:rom.md@196f =         4fd5002a</action>
		<action>slot:cart:rom.mq@bdb0 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bdb8 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bdc0 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bdc8 = ffffffffffffffff</action>
	</script>
</cheat>

<cheat desc="walk through wall (wip)">
	<script state="on">
		<action>slot:cart:rom.mb@171a = 18</action>
	</script>
	<script state="off">
		<action>slot:cart:rom.mb@171a = 20</action>
	</script>
</cheat>

<cheat desc="player speed (wip)">
	<parameter min="0x01" max="0x05" step="0x01" />
	<script state="on">
		<action>slot:cart:rom.mw@1781 =             bdd0</action>
		<action>slot:cart:rom.mq@bdd0 = 77ddbde6cd417edd</action>
		<action>slot:cart:rom.mq@bdd8 = ddbde6cd3f7edd41</action>
		<action>slot:cart:rom.mq@bde0 = c8a7c91a7ccd3f77</action>
		<action>slot:cart:rom.mq@bde8 = ffffc944edf0003e</action>
		<!--
		bdd0 | dd 7e 41 : ld   a,(ix+$41)
		bdd3 | cd e6 bd : call $bde6
		bdd6 | dd 77 41 : ld   (ix+$41),a
		bdd9 | dd 7e 3f : ld   a,(ix+$3f)
		bddc | cd e6 bd : call $bde6
		bddf | dd 77 3f : ld   (ix+$3f),a
		bde2 | cd 7c 1a : call $1a7c
		bde5 | c9       : ret
		bde6 | a7       : and  a
		bde7 | c8       : ret  z
		bde8 | 3e xx    : ld   a,$xx
		bdea | f0       : ret  p
		bdeb | ed 44    : neg
		bded | c9       : ret
		-->
	</script>
	<script state="change">
		<action>slot:cart:rom.mb@bde9 = param</action>
	</script>
	<script state="off">
		<action>slot:cart:rom.mw@1781 =             1a7c</action>
		<action>slot:cart:rom.mq@bdd0 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bdd8 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bde0 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bde8 = 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>slot:cart:rom.mb@0245 =               00</action> <!-- accept sound code -->
		<action>slot:cart:rom.mw@0518 =             bd80</action>
		<action>slot:cart:rom.mq@bd80 = 22d5bd8311800021</action>
		<action>slot:cart:rom.mq@bd88 = fec86fbddcdbc100</action>
		<action>slot:cart:rom.mq@bd90 = 0120f7fe250120fb</action>
		<action>slot:cart:rom.mq@bd98 = 05187c0320effe24</action>
		<action>slot:cart:rom.mq@bda0 = d00332ff3ec0dffe</action>
		<action>slot:cart:rom.mq@bda8 = ffffffffffffffc9</action>
		<!--
		bd80 | 21 00 80 : ld   hl,$8000   // initialize sound and input values
		bd83 | 11 83 bd : ld   de,$bd83
		bd86 | d5       : push de
		bd87 | 22 00 c1 : ld   ($c100),hl
		bd8a | db dc    : in   a,($dc)    // read input
		bd8c | bd       : cp   l
		bd8d | 6f       : ld   l,a
		bd8e | c8       : ret  z
		bd8f | fe fb    : cp   $fb
		bd91 | 20 01    : jr   nz,$bd94
		bd93 | 25       : dec  h          // pressed left - code decrement
		bd94 | fe f7    : cp   $f7
		bd96 | 20 01    : jr   nz,$bd99
		bd98 | 24       : inc  h          // pressed right - code increment
		bd99 | fe ef    : cp   $ef
		bd9b | 20 03    : jr   nz,$bda0
		bd9d | 7c       : ld   a,h        // pressed button 1 - play sound
		bd9e | 18 05    : jr   $bda5
		bda0 | fe df    : cp   $df
		bda2 | c0       : ret  nz
		bda3 | 3e ff    : ld   a,$ff      // pressed button 2 - stop sound
		bda5 | 32 03 d0 : ld   ($d003),a
		bda8 | c9       : ret
		-->
	</script>
	<script state="run">
		<output format="----- alien syndrome 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.mb@0245 =               06</action>
		<action>slot:cart:rom.mw@0518 =             029f</action>
		<action>slot:cart:rom.mq@bd80 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bd88 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bd90 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bd98 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bda0 = ffffffffffffffff</action>
		<action>slot:cart:rom.mq@bda8 = ffffffffffffffff</action>
	</script>
</cheat>
"sound test mode" works with FM sound. If you want to hear PSG version, try "sg1000m3" instead of "smsj" (not "sms"!).
Post Reply