Hello,
I am requesting moon jump / infinite jump for Wonder boy.
Thanks
[wboy] Infinite jump / moon jump
-
- Posts: 5
- Joined: Sun May 19, 2024 10:17 am
- Has thanked: 2 times
Re: [wboy] Infinite jump / moon jump
Multiple jump. Tap jump button to moon jump.
wboy.xml
It's WIP code because I put custom routine into "bank" rom area so that the game will crash if bank changes.
Please tell me if this code has bug.
wboy.xml
Code: Select all
<cheat desc="multiple jump">
<script state="on">
<action>maincpu.od@29A1 = 00FFFFCD </action> <!-- jump -->
<action>maincpu.md@29A1 = FFBFE0FF </action>
<action>maincpu.od@2A25 = 00FFFFCD </action> <!-- fall down -->
<action>maincpu.md@2A25 = FFBFE0FF </action>
<action>maincpu.mq@BFE0 = CB08286ECBC08421</action>
<action>maincpu.mq@BFE8 = DDC9E1031F36DDAE</action>
<action>maincpu.mq@BFF0 = FFFFFFFFC97E1FCB</action>
<!--
BFE0 | 21 84 C0 : ld hl,$C084 // check jump button
BFE3 | CB 6E : bit 5,(hl)
BFE5 | 28 08 : jr z,$BFEF
BFE7 | CB AE : res 5,(hl)
BFE9 | DD 36 1F 03 : ld (ix+$1f),$03 // set jump flag
BFED | E1 : pop hl
BFEE | C9 : ret
BFEF | DD CB 1F 7E : bit 7,(ix+$1f)
BFF3 | C9 : ret
-->
</script>
<script state="off">
<action>maincpu.od@29A1 = 2E5BCBDD </action>
<action>maincpu.md@29A1 = 7E1F9B99 </action>
<action>maincpu.od@2A25 = 3B4FCBDD </action>
<action>maincpu.md@2A25 = 7E1FCF8D </action>
<action>maincpu.mq@BFE0 = FFFFFFFFFFFFFFFF</action>
<action>maincpu.mq@BFE8 = FFFFFFFFFFFFFFFF</action>
<action>maincpu.mq@BFF0 = FFFFFFFFFFFFFFFF</action>
</script>
</cheat>
Please tell me if this code has bug.
- These users thanked the author jman for the post:
- daninthemix
- Rating: 33.33%
jman
my wip cheat database back-up (2024/12/01 ver.)
https://u3.getuploader.com/...../download/47
downloadpass : jman2020
my wip cheat database back-up (2024/12/01 ver.)
https://u3.getuploader.com/...../download/47
downloadpass : jman2020
-
- Posts: 5
- Joined: Sun May 19, 2024 10:17 am
- Has thanked: 2 times
Re: [wboy] Infinite jump / moon jump
Thanks - but this code appears to cause the game to reset when I hit jump.
Re: [wboy] Infinite jump / moon jump
That's curious. The game reset doesn't happen on my MAME for now.daninthemix wrote: but this code appears to cause the game to reset when I hit jump.
But it sounds like wrong bank switching. Try another code.
Code: Select all
<cheat desc="multiple jump">
<script state="on">
<action>maincpu.od@29A1 = 00FFFFCD</action>
<action>maincpu.md@29A1 = FFC780FF</action>
<action>maincpu.od@2A25 = 00FFFFCD</action>
<action>maincpu.md@2A25 = FFC780FF</action>
</script>
<script state="run">
<action>maincpu.pq@C780 = CB08286ECBC08421</action>
<action>maincpu.pq@C788 = DDC9E1031F36DDAE</action>
<action>maincpu.pq@C790 = 00000000C97E1FCB</action>
<!--
C780 | 21 84 C0 : ld hl,$C084
C783 | CB 6E : bit 5,(hl) // check jump button
C785 | 28 08 : jr z,$C78F
C787 | CB AE : res 5,(hl)
C789 | DD 36 1F 03 : ld (ix+$1f),$03 // set jump flag
C78D | E1 : pop hl
C78E | C9 : ret
C78F | DD CB 1F 7E : bit 7,(ix+$1f)
C793 | C9 : ret
-->
</script>
<script state="off">
<action>maincpu.od@29A1 = 2E5BCBDD </action>
<action>maincpu.md@29A1 = 7E1F9B99 </action>
<action>maincpu.od@2A25 = 3B4FCBDD </action>
<action>maincpu.md@2A25 = 7E1FCF8D </action>
<action>maincpu.pq@C780 = 0000000000000000</action>
<action>maincpu.pq@C788 = 0000000000000000</action>
<action>maincpu.pq@C790 = 0000000000000000</action>
</script>
</cheat>
Also daninthemix needs to check the following items.
- Check game you play. The above codes are for wboy ONLY. I don't guarantee other sets.
- Check MAME you use. I confirm the above codes for "official" MAME "0.265". I don't quarantee other clone MAME or lower version too.
- These users thanked the author jman for the post:
- daninthemix
- Rating: 33.33%
jman
my wip cheat database back-up (2024/12/01 ver.)
https://u3.getuploader.com/...../download/47
downloadpass : jman2020
my wip cheat database back-up (2024/12/01 ver.)
https://u3.getuploader.com/...../download/47
downloadpass : jman2020
-
- Posts: 5
- Joined: Sun May 19, 2024 10:17 am
- Has thanked: 2 times
Re: [wboy] Infinite jump / moon jump
Works perfectly - thankyou.
Reason I was having issues before is I was loading save states. Sorry about that!
Reason I was having issues before is I was loading save states. Sorry about that!