Difference between revisions of "Store Halfword"
Jump to navigation
Jump to search
(Created page with " # ROUTINE: STORE HALFWORD # Stores a halfword (2-byte value) in little-endian format. Works for unaligned addresses. # Parameters: # r4 = (location)...") |
(No difference)
|
Latest revision as of 16:02, 4 May 2018
# ROUTINE: STORE HALFWORD # Stores a halfword (2-byte value) in little-endian format. Works for unaligned addresses. # Parameters: # r4 = (location) Memory location in which to store the value # r5 = (value) Value to be stored 80146094: 00051202 srl r2,r5,0x08 # (High byte of value) 80146098: a0850000 sb r5,0x0000(r4) # *location = (Low byte of value) 8014609c: 03e00008 jr r31 801460a0: a0820001 sb r2,0x0001(r4) # *(location + 1) = (High byte of value)