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.
einstein95
Posts: 17 Joined: Sun Aug 16, 2015 1:15 pm
Post
by einstein95 » Wed Sep 23, 2015 3:09 pm
If anyone knows of a better way of converting int to BCD, please tell me.
Edit: Thanks pugsy
Code: Select all
<cheat desc="Finish Current Stage Now!">
<script state="on">
<action>maincpu.pb@0918=01</action>
</script>
</cheat>
<cheat desc="Select Next Level">
<parameter min="1" max="99" step="1"/>
<script state="run">
<action>maincpu.pb@0919=param</action>
<action>maincpu.pb@091A=tobcd(param)</action>
</script>
</cheat>
Last edited by
einstein95 on Sat Dec 19, 2015 6:17 pm, edited 2 times in total.
Pugsy
Posts: 3675 Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 16 times
Contact:
Post
by Pugsy » Wed Sep 23, 2015 11:00 pm
einstein95
Posts: 17 Joined: Sun Aug 16, 2015 1:15 pm
Post
by einstein95 » Sat Dec 19, 2015 6:18 pm
Bumping this as it wasn't added in the last update (also added your fix, pugsy)
Pugsy
Posts: 3675 Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 16 times
Contact:
Post
by Pugsy » Sun Jan 03, 2016 4:10 pm
Thanks, added - I missed it because I was the last one to post and that's part of how I flag if I've added it. I think I skipped it because it needed changing to a starting level cheat as select next level cheats are generally not used as they have side effects like needing to be turned off. It's just a matter of adding a simple condition to check if it's on the first level and only poke the value if it is.
Code: Select all
<cheat desc="Select Starting Level">
<parameter min="1" max="99" step="1"/>
<script state="run">
<action condition="maincpu.pb@0919==01">maincpu.pb@0919=param, maincpu.pb@091A=tobcd(param)</action>
</script>
</cheat>