Difference between revisions of "Load Halfword"
Jump to navigation
Jump to search
(Load Halfword: spacing) |
|||
Line 1: | Line 1: | ||
− | 00146078: 90830001 lbu r3,0x0001(r4) | + | 00146078: 90830001 lbu r3,0x0001(r4) # Load high byte |
− | 0014607c: 90820000 lbu r2,0x0000(r4) | + | 0014607c: 90820000 lbu r2,0x0000(r4) # Load low byte |
00146080: 00031a00 sll r3,r3,0x08 | 00146080: 00031a00 sll r3,r3,0x08 | ||
− | 00146084: 00431025 or r2,r2,r3 | + | 00146084: 00431025 or r2,r2,r3 # r2 = ((high byte) << 8) + low byte |
− | 00146088: 00021400 sll r2,r2,0x10 # | + | 00146088: 00021400 sll r2,r2,0x10 # sll/sra first 16 bits to apply sign extension |
0014608c: 03e00008 jr r31 | 0014608c: 03e00008 jr r31 | ||
00146090: 00021403 sra r2,r2,0x10 | 00146090: 00021403 sra r2,r2,0x10 |
Revision as of 01:41, 21 February 2013
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