[trigon] Lightning Fighters/Trigon

This forum is for posting M.A.M.E. Work In Progress "Arcade"cheats that are not quite ready for the prime time. If the cheats are buggy or the cheat descriptions are non-standard then please post them here. Help maybe given but there are no guarantees and they will only be added to the cheat file when the cheat file maintainer is happy with them.
Post Reply
jman
CheatFinder Lance Corporal
CheatFinder Lance Corporal
Posts: 67
Joined: Tue Dec 01, 2020 1:24 pm

[trigon] Lightning Fighters/Trigon

Post by jman »

Code: Select all

<cheat desc="auto fire">
	<script state="on">
		<action>maincpu.mb@16f15 = 02</action>
		<action>maincpu.mb@16f1d = 02</action>
		<action>maincpu.mb@16f78 = 60</action>
	</script>
	<script state="off">
		<action>maincpu.mb@16f15 = 12</action>
		<action>maincpu.mb@16f1d = 0a</action>
		<action>maincpu.mb@16f78 = 66</action>
	</script>
</cheat>

<cheat desc="player speed">
	<parameter min="0x01" max="0x05" step="0x01" />
	<script state="on">
		<action>maincpu.mq@16d90 = 4eb9000283a00804</action>
		<action>maincpu.mq@16dde = 4eb9000283aa0804</action>
		<action>maincpu.mq@283a0 = 61000012202e0008</action>
		<action>maincpu.mq@283a8 = 4e7561000008202e</action>
		<action>maincpu.mq@283b0 = 000c4e75223c0000</action>
		<action>maincpu.mq@283b8 = 0000281967066a02</action>
		<action>maincpu.mq@283c0 = 4481d8814e75ffff</action>
		<!--
		16d90 | 4eb9 0002 83a0 : jsr    $283a0.l
		16dde | 4eb9 0002 83aa : jsr    $283aa.l
		283a0 | 6100 0012      : bsr    $283b4
		283a4 | 202e 0008      : move.l ($8,A6),D0
		283a8 | 4e75           : rts
		283aa | 6100 0012      : bsr    $283b4
		283ae | 202e 000c      : move.l ($c,A6),D0
		283b2 | 4e75           : rts
		283b4 | 223c 00xx 0000 : move.l #$xx0000,D1
		283ba | 2819           : move.l (A1)+,D4
		283bc | 6706           : beq    $283c4
		283be | 6a02           : bpl    $283c2
		283c0 | 4481           : neg.l  D1
		283c2 | d881           : add.l  D1,D4
		283c4 | 4e75           : rts
		-->
	</script>
	<script state="change">
		<action>maincpu.mb@283b7 = param</action>
	</script>
	<script state="off">
		<action>maincpu.mq@16d90 = 2819202e00080804</action>
		<action>maincpu.mq@16dde = 2811202e000c0804</action>
		<action>maincpu.mq@283a0 = ffffffffffffffff</action>
		<action>maincpu.mq@283a8 = ffffffffffffffff</action>
		<action>maincpu.mq@283b0 = ffffffffffffffff</action>
		<action>maincpu.mq@283b8 = ffffffffffffffff</action>
		<action>maincpu.mq@283c0 = ffffffffffffffff</action>
	</script>
</cheat>
<cheat desc="bullet speed">
	<parameter>
		<item value="0xfff8">01</item>
		<item value="0xfff4">02</item>
		<item value="0xfff0">03</item>
		<item value="0xffe8">04</item>
		<item value="0xffe4">05</item>
	</parameter>
	<script state="on">
		<!-- "S" -->
		<action>maincpu.mq@17086 = 4eb900028390301d</action>
		<action>maincpu.mq@28390 = 201d2540007c357c</action>
		<action>maincpu.mq@28398 = fff4007c4e75ffff</action>
		<!--
		17086 | 4eb9 0002 8390 : jsr    $28390.l
		28390 | 201d           : move.l (A5)+,D0
		28392 | 2540 007c      : move.l D0,($7c,A2)
		28396 | 357c xxxx 007c : move.w #$xxxx,($7c,A2)
		2839c | 4e75           : rts
		-->
		<!-- "V" -->
		<action>maincpu.mq@16fc4 = 303cfff04e7142aa</action>
		<!--
		16fc4 | 303c xxxx 4e71 : move.w #$xxxx,D0 / nop
		-->
	</script>
	<script state="change">
		<action>maincpu.mw@28398 = param</action>
		<action>maincpu.mw@16fc6 = param</action>
	</script>
	<script state="off">
		<action>maincpu.mq@17086 = 201d2540007c301d</action>
		<action>maincpu.mq@28390 = ffffffffffffffff</action>
		<action>maincpu.mq@28398 = ffffffffffffffff</action>
		<action>maincpu.mq@16fc4 = 10290007488042aa</action>
	</script>
</cheat>

<cheat desc="skip rom check">
	<script state="on">
		<action>maincpu.mw@17aa = 0024</action>
	</script>
	<script state="off">
		<action>maincpu.mw@17aa = 031e</action>
	</script>
</cheat>
Post Reply