Prep for Displaying Earned Exp/JP
Jump to navigation
Jump to search
00080f44: 27bdffe8 addiu r29,r29,0xffe8 00080f48: 00803021 addu r6,r4,r0 r6 = Misc Unit Data Pointer? 00080f4c: 3c028004 lui r2,0x8004 00080f50: 8c4273ac lw r2,0x73ac(r2) Load Custom Options 00080f54: 3c030600 lui r3,0x0600 00080f58: 00431024 and r2,r2,r3 00080f5c: 1440001f bne r2,r0,0x00080fdc Branch if Display Gained Exp/JP is OFF 00080f60: afbf0010 sw r31,0x0010(r29) 00080f64: 8cc502c4 lw r5,0x02c4(r6) Load Numerical? Display Section 1 Pointer 00080f68: 8cc402c8 lw r4,0x02c8(r6) Load Numerical? Display Section 2 Pointer 00080f6c: 8cc302cc lw r3,0x02cc(r6) Load Numerical? Display Section 3 Pointer 00080f70: 3402001f ori r2,r0,0x001f r2 = 1f (Frame.Bin) 00080f74: a4620004 sh r2,0x0004(r3) Store RAM Spritesheet ID = Frame.bin 00080f78: a4820004 sh r2,0x0004(r4) Store RAM Spritesheet ID = Frame.bin 00080f7c: a4a20004 sh r2,0x0004(r5) Store RAM Spritesheet ID = Frame.bin 00080f80: 90c201b0 lbu r2,0x01b0(r6) Load Earned Experience 00080f84: 00000000 nop 00080f88: 10400005 beq r2,r0,0x00080fa0 Branch if Earned Experience = 0 00080f8c: 3c030200 lui r3,0x0200 00080f90: 8cc201b8 lw r2,0x01b8(r6) Load Display Flags? 00080f94: 00000000 nop 00080f98: 00431025 or r2,r2,r3 Enable Display Gained Exp? 00080f9c: acc201b8 sw r2,0x01b8(r6) Store new Display Flags? 00080fa0: 90c201b1 lbu r2,0x01b1(r6) Load Earned JP 00080fa4: 00000000 nop 00080fa8: 10400005 beq r2,r0,0x00080fc0 Branch if Earned JP = 0 00080fac: 3c030400 lui r3,0x0400 00080fb0: 8cc201b8 lw r2,0x01b8(r6) Load Display Flags? 00080fb4: 00000000 nop 00080fb8: 00431025 or r2,r2,r3 Enable Display Gained JP? 00080fbc: acc201b8 sw r2,0x01b8(r6) Store new Display Flags? 00080fc0: 90c202bc lbu r2,0x02bc(r6) Load ? 00080fc4: 00000000 nop 00080fc8: 14400004 bne r2,r0,0x00080fdc Branch if ? != 0 00080fcc: 00000000 nop 00080fd0: a4c002c2 sh r0,0x02c2(r6) Store ? = 0 00080fd4: 0c02022e jal 0x000808b8 Set Exp/JP Display Data and get Palette 00080fd8: 00c02021 addu r4,r6,r0 r4 = Unit's Misc Data Pointer? 00080fdc: 8fbf0010 lw r31,0x0010(r29) 00080fe0: 27bd0018 addiu r29,r29,0x0018 00080fe4: 03e00008 jr r31 00080fe8: 00000000 nop