[grobda+] Stage codes

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
einstein95
Posts: 17
Joined: Sun Aug 16, 2015 1:15 pm

[grobda+] Stage codes

Post by einstein95 »

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.
User avatar
Pugsy
Posts: 3675
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 16 times
Contact:

Re: [grobda+] Stage codes

Post by Pugsy »

Code: Select all

maincpu.pb@091A=tobcd(param)
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.264 XML cheat collection (3 APRIL 2024) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/SxsQUJoT#jBdz6GLm_ ... QzFGSMms2c (ZIP Archive 3.8 MB)
einstein95
Posts: 17
Joined: Sun Aug 16, 2015 1:15 pm

Re: [grobda+] Stage codes

Post by einstein95 »

Bumping this as it wasn't added in the last update (also added your fix, pugsy)
User avatar
Pugsy
Posts: 3675
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 16 times
Contact:

Re: [grobda+] Stage codes

Post by Pugsy »

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>
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.264 XML cheat collection (3 APRIL 2024) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/SxsQUJoT#jBdz6GLm_ ... QzFGSMms2c (ZIP Archive 3.8 MB)
Post Reply