Dr. Robotnik's Mean Bean Machine Hacking

Discussion in 'Discussion & Q&A' started by Novedicus, Oct 13, 2018.

  1. Novedicus

    Novedicus Well-Known Member Member

    Joined:
    Aug 26, 2013
    Messages:
    853
    I'm currently not home right now, but I've been disasembling the game and I here are some of my findings. Not much for now, but it's progress. Doing more when I can.
     
    ProjectFM, Renegade, A-S-H and 2 others like this.
  2. MarkeyJester

    MarkeyJester !%#@ Member

    Joined:
    Jun 27, 2009
    Messages:
    2,660
    Nice finds, but... why didn't you just wait til you got home then?

    I mean, it's not like someone's gonna beat you to disassembling and researching the game or anything.

    ...so, take it easy? d=
     
  3. Novedicus

    Novedicus Well-Known Member Member

    Joined:
    Aug 26, 2013
    Messages:
    853
    I had already posted about it on Retro yesterday, and I remembered this place, and I was bored on the way home, >=P
     
    A-S-H likes this.
  4. Novedicus

    Novedicus Well-Known Member Member

    Joined:
    Aug 26, 2013
    Messages:
    853
    Fun fact: You can bypass the region lockout screen!

    You enter this code with player 2's controller at the lockout screen:
    Code:
    A A Up Right Down Left B B Right Down Left Up C C Down Left Up Right Start Start
    Do note that you can only attempt to enter this once. Mess up and you'll need to restart your console to try again.

    Here's the code that handles this
    Code:
    [68k]
    ROM:0002253E @@ChkCode:                              ; CODE XREF: ObjLockoutBypass+2Cj
    ROM:0002253E                 lea     (r_P2_Data).l,a1
    ROM:00022544                 lea     (LockoutBypassCode).l,a2
    ROM:0002254A                 move.w  $26(a0),d0
    ROM:0002254E                 move.b  (a2,d0.w),d0
    ROM:00022552                 cmpi.b  #$FF,d0
    ROM:00022556                 beq.s   @@BypassLockout
    ROM:00022558                 move.b  1(a1),d1
    ROM:0002255C                 beq.s   @@NoButton
    ROM:0002255E                 cmp.b   d0,d1
    ROM:00022560                 bne.s   @@NoMatch
    ROM:00022562                 addq.w  #1,$26(a0)
    ROM:00022566
    ROM:00022566 @@NoButton:                             ; CODE XREF: ObjLockoutBypass+52j
    ROM:00022566                 rts
    ROM:00022568 ; ---------------------------------------------------------------------------
    ROM:00022568
    ROM:00022568 @@BypassLockout:                        ; CODE XREF: ObjLockoutBypass+4Cj
    ROM:00022568                 move.b  #0,(r_BC_Stop).l
    ROM:00022570                 rts
    ROM:00022572 ; ---------------------------------------------------------------------------
    ROM:00022572
    ROM:00022572 @@NoMatch:                              ; CODE XREF: ObjLockoutBypass+1Aj
    ROM:00022572                                         ; ObjLockoutBypass+26j ...
    ROM:00022572                 jsr     (ObjDelay).l
    ROM:00022578                 nop
    ROM:0002257A                 rts
    
                ...
    
    ROM:00023520 LockoutBypassCode:dc.b $40              ; DATA XREF: ObjLockoutBypass+3Ao
    ROM:00023521                 dc.b $40
    ROM:00023522                 dc.b 1
    ROM:00023523                 dc.b 8
    ROM:00023524                 dc.b 2
    ROM:00023525                 dc.b 4
    ROM:00023526                 dc.b $10
    ROM:00023527                 dc.b $10
    ROM:00023528                 dc.b 8
    ROM:00023529                 dc.b 2
    ROM:0002352A                 dc.b 4
    ROM:0002352B                 dc.b 1
    ROM:0002352C                 dc.b $20
    ROM:0002352D                 dc.b $20
    ROM:0002352E                 dc.b 2
    ROM:0002352F                 dc.b 4
    ROM:00023530                 dc.b 1
    ROM:00023531                 dc.b 8
    ROM:00023532                 dc.b $80
    ROM:00023533                 dc.b $80
    ROM:00023534                 dc.b $FF
    ROM:00023535                 dc.b 0
    [/68k]
     
    Last edited: Oct 25, 2018
  5. Novedicus

    Novedicus Well-Known Member Member

    Joined:
    Aug 26, 2013
    Messages:
    853
    I've attempted to restore the original songs in the levels in Mean Bean Machine by changing the song IDs to the Puyo Puyo tracks.

    ROM
     
    Pacca and Renegade like this.