[namenayo] Namennayo

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

[namenayo] Namennayo

Post by jman »

Code: Select all

<cheat desc="no hit">
	<script state="on">
		<action>maincpu.md@16b5 = 3a1632c3</action> <!-- background -->
		<action>maincpu.mb@2157 =       59</action> <!-- police -->
	</script>
	<script state="off">
		<action>maincpu.md@16b5 = 3a400e32</action>
		<action>maincpu.mb@2157 =       9a</action>
	</script>
</cheat>
The above code has problem. Starting position at next scene is wrong (character out of screen).
I check this code from scene 1 to 6 (because next scene after 6 is not 7 but 1) so that other problems may happen in later scene.
Last edited by jman on Thu Jun 10, 2021 12:20 pm, edited 1 time in total.
jman
CheatFinder Lance Corporal
CheatFinder Lance Corporal
Posts: 67
Joined: Tue Dec 01, 2020 1:24 pm

[namenayo] sound test mode

Post by jman »

Code: Select all

<cheat desc="sound test mode">
	<comment>reset the game (F3) to enter sound test mode</comment>
	<script state="on">
		<action>maincpu.mw@07bb =             3f20</action>
		<action>maincpu.mq@3f20 = 150021fa0132083e</action>
		<action>maincpu.mq@3f28 = 6fbd40083a410022</action>
		<action>maincpu.mq@3f30 = fe250120dffef628</action>
		<action>maincpu.mq@3f38 = 0420f7fe240120ef</action>
		<action>maincpu.mq@3f40 = 0000e2182ab9cd7c</action>
		<!--
		07ba | cd 20 3f : call $3f20
		3f20 | 3e 08    : ld   a,$08
		3f22 | 32 01 fa : ld   ($fa01),a // enable sound
		3f25 | 21 00 15 : ld   hl,$1500  // initialize sound and input values
		3f28 | 22 00 41 : ld   ($4100),hl
		3f2b | 3a 08 40 : ld   a,($4008) // read input
		3f2e | bd       : cp   l
		3f2f | 6f       : ld   l,a
		3f30 | 28 f6    : jr   z,$3f28
		3f32 | fe df    : cp   $df
		3f34 | 20 01    : jr   z,$3f37
		3f36 | 25       : dec  h         // pressed left - code decremnet
		3f37 | fe ef    : cp   $ef
		3f39 | 20 01    : jr   z,$3f3c
		3f3b | 24       : inc  h         // pressed right - code increment
		3f3c | fe f7    : cp   $f7
		3f3e | 20 04    : jr   z,$3f44
		3f40 | 7c       : ld   a,h       // pressed button1 - play sound
		3f41 | cd b9 2a : call $2ab9
		3f44 | 18 e2    : jr   $3f28
		-->
	</script>
	<script state="run">
		<output format="----- namennayo 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="----------------------------"          line="14" align="center" />
		<output format="&lt;&lt; sound code %2.2X &gt;&gt;"    line="16" align="center">
			<argument>maincpu.pb@4101</argument>
		</output>
	</script>
	<script state="off">
		<action>maincpu.mw@07bb =             07f9</action>
		<action>maincpu.mq@3f20 = 0000000000000000</action>
		<action>maincpu.mq@3f28 = 0000000000000000</action>
		<action>maincpu.mq@3f30 = 0000000000000000</action>
		<action>maincpu.mq@3f38 = 0000000000000000</action>
		<action>maincpu.mq@3f40 = 0000000000000000</action>
	</script>
</cheat>
I don't know how to stop music via sound code.
However, this game seems to have "short" music (0x15, 0x16 and 0x17) only.
So you need to wait for music stop if you want to listen others.
Post Reply