[mswordj] Magic Sword

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 Private
Posts: 41
Joined: Tue Dec 01, 2020 1:24 pm

[mswordj] Magic Sword

Post by jman »

Code: Select all

<cheat desc="no hit">
	<script state="on">
		<action>maincpu.mw@028ae = 6000</action> <!-- enemy -->
		<action>maincpu.mw@028ee = 6000</action> <!-- attack -->
		<action>maincpu.mw@47b78 = 6000</action> <!-- trap 1 -->
		<action>maincpu.mw@0789e = 6000</action> <!-- trap floor -->
		<action>maincpu.mw@487e2 = 6000</action> <!-- trap 2 -->
		<action>maincpu.mb@20bfd =   02</action> <!-- mummy -->
		<action>maincpu.mw@48e7c = 6000</action> <!-- trap water -->
		<action>maincpu.mw@4f610 = 6000</action> <!-- trap 3 -->
		<action>maincpu.mw@3f012 = 6000</action> <!-- mummy 2 -->
		<action>maincpu.mb@3f031 =   02</action> <!-- mummy 3 -->
		<action>maincpu.mb@1d756 =   60</action> <!-- spider -->
	</script>
	<script state="off">
		<action>maincpu.mw@028ae = 51c8</action>
		<action>maincpu.mw@028ee = 51c8</action>
		<action>maincpu.mw@47b78 = 51c8</action>
		<action>maincpu.mw@0789e = 6600</action>
		<action>maincpu.mw@487e2 = 51c8</action>
		<action>maincpu.mb@20bfd =   86</action>
		<action>maincpu.mw@48e7c = 51c8</action>
		<action>maincpu.mw@4f610 = 51c8</action>
		<action>maincpu.mw@3f012 = 6400</action>
		<action>maincpu.mb@3f031 =   86</action>
		<action>maincpu.mb@1d756 =   64</action>
	</script>
</cheat>

<cheat desc="no hit - partner">
	<script state="on">
		<action>maincpu.mw@02abc = 6000</action> <!-- enemy -->
		<action>maincpu.mw@02afc = 6000</action> <!-- attack -->
		<action>maincpu.mw@47b90 = 6000</action> <!-- trap -->
		<action>maincpu.mw@0b892 = 6000</action> <!-- trap floor -->
		<action>maincpu.mw@487f8 = 6000</action> <!-- trap 2 -->
		<action>maincpu.mw@48e92 = 6000</action> <!-- trap water -->
		<action>maincpu.mw@4f628 = 6000</action> <!-- trap 3 -->
	</script>
	<script state="off">
		<action>maincpu.mw@02abc = 51c8</action>
		<action>maincpu.mw@02afc = 51c8</action>
		<action>maincpu.mw@47b90 = 51c8</action>
		<action>maincpu.mw@0b892 = 6600</action>
		<action>maincpu.mw@487f8 = 51c8</action>
		<action>maincpu.mw@48e92 = 51c8</action>
		<action>maincpu.mw@4f628 = 51c8</action>
	</script>
</cheat>

<cheat desc="auto fire">
	<script state="on">
		<!-- player -->
		<action>maincpu.md@857c = 4eb800c0</action>
		<action>maincpu.mq@00c0 = 020600ef4606cc05</action>
		<action>maincpu.mq@00c8 = 4e75ffffffffffff</action>
		<!--
		857c | 4eb8 00c0 : jsr $c0.w
		00c0 | 0206 00ef : andi.b #$ef,D6
		00c4 | 4606      : not.b D6
		00c6 | cc05      : and.b D5,D6
		00c8 | 4e75      : rts
		-->
		<!-- partner -->
		<action>maincpu.mq@c99a = 4eb9000000d00200</action> // ninja
		<action>maincpu.mq@eb6e = 4eb9000000d00200</action> // knight
		<action>maincpu.mq@d06e = 4eb9000000d00200</action> // bigman
		<action>maincpu.mq@de42 = 4eb9000000d00200</action> // wizard
		<action>maincpu.mq@d720 = 4eb9000000d00200</action> // priest
		<action>maincpu.mq@e560 = 4eb9000000d00200</action> // amazon
		<action>maincpu.mq@f258 = 4eb9000000d00200</action> // thief
		<action>maincpu.mq@f940 = 4eb9000000d00200</action> // lizardman
		<action>maincpu.mq@00d0 = 020000ef4600c02e</action>
		<action>maincpu.mq@00d8 = 00504e75ffffffff</action>
		<!--
		00d0 | 0200 00ef      : andi.b #$ef,D0
		00d4 | 4600           : not.b D0
		00d6 | c02e 0050      : and.b ($50,A6),D0
		00da | 4e75           : rts
		-->
	</script>
	<script state="off">
		<action>maincpu.md@857c = 4606cc05</action>
		<action>maincpu.mq@00c0 = ffffffffffffffff</action>
		<action>maincpu.mq@00c8 = ffffffffffffffff</action>
		<action>maincpu.mq@c99a = 4600c02e00500200</action>
		<action>maincpu.mq@eb6e = 4600c02e00500200</action>
		<action>maincpu.mq@d06e = 4600c02e00500200</action>
		<action>maincpu.mq@de42 = 4600c02e00500200</action>
		<action>maincpu.mq@d720 = 4600c02e00500200</action>
		<action>maincpu.mq@e560 = 4600c02e00500200</action>
		<action>maincpu.mq@f258 = 4600c02e00500200</action>
		<action>maincpu.mq@f940 = 4600c02e00500200</action>
		<action>maincpu.mq@00d0 = ffffffffffffffff</action>
		<action>maincpu.mq@00d8 = ffffffffffffffff</action>
	</script>
</cheat>

<cheat desc="attack speed up">
	<script state="on">
		<!-- action main timer : stand, crouch -->
		<action>maincpu.mb@08a9f = 04</action>
		<action>maincpu.mb@08f23 = 04</action>
		<!-- action main timer : air -->
		<action>maincpu.mb@091ab = 03</action>
		<!-- action sub timer : stand -->
		<action>maincpu.mb@516b3 = 01</action>
		<action>maincpu.mb@516c1 = 01</action>
		<action>maincpu.mb@516cf = 01</action>
		<!-- action sub timer : crouch -->
		<action>maincpu.mb@515f1 = 01</action>
		<action>maincpu.mb@5160b = 01</action>
		<!-- action sub timer : air -->
		<action>maincpu.mb@5178f = 02</action>
		<action>maincpu.mb@5179d = 02</action>
	</script>
	<script state="off">
		<action>maincpu.mb@08a9f = 0d</action>
		<action>maincpu.mb@08f23 = 0d</action>
		<action>maincpu.mb@091ab = 09</action>
		<action>maincpu.mb@516b3 = 04</action>
		<action>maincpu.mb@516c1 = 04</action>
		<action>maincpu.mb@516cf = 04</action>
		<action>maincpu.mb@515f1 = 04</action>
		<action>maincpu.mb@5160b = 04</action>
		<action>maincpu.mb@5178f = 04</action>
		<action>maincpu.mb@5179d = 04</action>
	</script>
</cheat>

<cheat desc="effective all magic items">
	<script state="on">
		<action>maincpu.mb@030e3 =   02</action> <!-- pendant -->
		<action>maincpu.mb@085a6 =   60</action> <!-- magic potion -->
		<action>maincpu.mb@0abb9 =   02</action> <!-- kings crown -->
		<action>maincpu.mw@0e50a = 4e71</action> <!-- golden pot -->
		<action>maincpu.mb@39ccc =   60</action> <!-- diamond ring -->
		<action>maincpu.mw@473fe = 4e71</action> <!-- scroll -->
		<action>maincpu.mb@4e344 =   60</action> <!-- crystal ball -->
	</script>
	<script state="off">
		<action>maincpu.mb@030e3 =   06</action>
		<action>maincpu.mb@085a6 =   67</action>
		<action>maincpu.mb@0abb9 =   0e</action>
		<action>maincpu.mw@0e50a = 6606</action>
		<action>maincpu.mb@39ccc =   67</action>
		<action>maincpu.mw@473fe = 6606</action>
		<action>maincpu.mb@4e344 =   67</action>
	</script>
</cheat>
"effective all magic items" code is incomplete. I don't add gauntlet because it does not hit in tracing.
If you try to search, set watchpoint at $ffa9f6 as read then find program code for reading value = 0x06.
Post Reply