Load Halfword

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
00146078: 90830001 lbu r3,0x0001(r4)   # Load high byte
0014607c: 90820000 lbu r2,0x0000(r4)   # Load low byte
00146080: 00031a00 sll r3,r3,0x08
00146084: 00431025 or r2,r2,r3         # r2 = ((high byte) << 8) + low byte
00146088: 00021400 sll r2,r2,0x10      # sll/sra first 16 bits to apply sign extension
0014608c: 03e00008 jr r31
00146090: 00021403 sra r2,r2,0x10