[dkongjr] skip section and starting level

This forum is for posting M.A.M.E. arcade cheats. Requests will be fulfilled here....but please keep the requests to the requests forum.
Post Reply
syndromtr
Posts: 232
Joined: Wed Sep 25, 2013 8:18 am
Been thanked: 1 time

[dkongjr] skip section and starting level

Post by syndromtr »

requested,

about starting level, from wikipedia:

"Like in its predecessor, Donkey Kong Jr. features a kill screen at level 22.
...
The kill screen occurs the same way as in Donkey Kong, where an integer overflow occurs after too big a result is given after a multiplication problem in the computing. The timer counts as if there are 700 points, then kills Donkey Kong Jr. until all lives are taken."

at level 22, bonus is checked. if it's X700, e.g. 3700, one life lost.
also gamecode checks level# and if reaches 44, sets it to 43. so max. parameter is chosen 43 in the cheat.

[dkongjr]

Code: Select all

	<cheat desc="Select Starting Level">
		<parameter min="1" max="43"/>
		<script state="run">
			<action condition="(maincpu.pb@6229 == 01)">maincpu.pb@6229=param</action>
		</script>
	</cheat>
	
	<cheat desc="Finish Current Section Now!">
		<script state="on">
			<action condition="(maincpu.pb@62B0 != 00) AND (maincpu.pb@6227 != 03)">maincpu.pb@6203=4E, maincpu.pb@6205=20</action>
			<action condition="(maincpu.pb@62B0 != 00) AND (maincpu.pb@6227 == 03)">maincpu.pb@6290=00</action>
		</script>
	</cheat>
User avatar
Pugsy
Posts: 3638
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 12 times
Contact:

Re: [dkongjr] skip section and starting level

Post by Pugsy »

Thanks, nice work added.
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
Post Reply