• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

Completed Nana and Popo Can Share Ledge

UnclePunch

Smash Ace
Joined
Nov 9, 2014
Messages
673

Code:
$Nana and Popo Can Share Ledge [UnclePunch]
C2082EA4 00000009
887F000C 889E221F
5484EFFE 3D808003
618C418C 7D8903A6
4E800421 2C030000
41820020 8063002C
7C03F000 40820014
3D808008 618C2EC0
7D8903A6 4E800420
809E0734 00000000
C2082ED8 00000009
887F000C 889E221F
5484EFFE 3D808003
618C418C 7D8903A6
4E800421 2C030000
41820020 8063002C
7C03F000 40820014
3D808008 618C2EF4
7D8903A6 4E800420
809E0730 00000000
Code:
.macro branchl reg, address
lis \reg, \address @h
ori \reg,\reg,\address @l
mtctr \reg
bctrl
.endm

.macro branch reg, address
lis \reg, \address @h
ori \reg,\reg,\address @l
mtctr \reg
bctr
.endm


.set ledgeplayerdata,31
.set airplayerdata,30


#Get Person on Ledge's Pointer
lbz    r3, 0xC(ledgeplayerdata)            #Ledge Slot
lbz    r4, 0x221F (airplayerdata)    #Air Subchar Bool
rlwinm    r4, r4, 29, 31, 31
branchl    r12,0x8003418c               #Get Ledge's sub/main char bool
cmpwi    r3,0x0               #exit if 0
beq    exit
lwz    r3,0x2C(r3)               #Get Data
cmpw    r3,airplayerdata               #check if player on ledge's other char is the person trying to grab ledge        
bne    exit

skip:
branch    r12,0x80082ec0


exit:
lwz    r4, 0x0734 (r30)
 
Last edited:
Top Bottom