lwl

Operands

$reg, [imm($reg) / ($reg) / imm / id / id($reg) / id+imm / id+imm($reg)]

Load word left (unaligned) : Loads 1-4 bytes into the most-significant (left) bytes of $t1 starting from the effective byte address and working toward the low byte of the containing word. Use together with 'lwr' to load a full 32-bit word from an unaligned address.

Variants

  • Load word left (unaligned) : Loads 1-4 bytes into the most-significant (left) bytes of $t1 starting from the effective byte address and working toward the low byte of the containing word. Use together with 'lwr' to load a full 32-bit word from an unaligned address. lwl $t1,-100($t2)
  • Load Word Left : Load from 1 to 4 bytes left-justified into $t1, starting with effective memory byte address and continuing through the low-order byte of its word lwl $t1,($t2)
  • Load Word Left : Load from 1 to 4 bytes left-justified into $t1, starting with effective memory byte address and continuing through the low-order byte of its word lwl $t1,-100
  • Load Word Left : Load from 1 to 4 bytes left-justified into $t1, starting with effective memory byte address and continuing through the low-order byte of its word lwl $t1,100
  • Load Word Left : Load from 1 to 4 bytes left-justified into $t1, starting with effective memory byte address and continuing through the low-order byte of its word lwl $t1,100000
  • Load Word Left : Load from 1 to 4 bytes left-justified into $t1, starting with effective memory byte address and continuing through the low-order byte of its word lwl $t1,100($t2)
  • Load Word Left : Load from 1 to 4 bytes left-justified into $t1, starting with effective memory byte address and continuing through the low-order byte of its word lwl $t1,100000($t2)
  • Load Word Left : Load from 1 to 4 bytes left-justified into $t1, starting with effective memory byte address and continuing through the low-order byte of its word lwl $t1,label
  • Load Word Left : Load from 1 to 4 bytes left-justified into $t1, starting with effective memory byte address and continuing through the low-order byte of its word lwl $t1,label($t2)
  • Load Word Left : Load from 1 to 4 bytes left-justified into $t1, starting with effective memory byte address and continuing through the low-order byte of its word lwl $t1,label+100000
  • Load Word Left : Load from 1 to 4 bytes left-justified into $t1, starting with effective memory byte address and continuing through the low-order byte of its word lwl $t1,label+100000($t2)
.data
.align 2
data: .word 0x12345678, 0
.text
# Start $t0 at 0xAABBCCDD; lwl merges bytes from the unaligned word at offset 1. Inspect $t0: 0x5678CCDD.
la $t1, data
li $t0, 0xAABBCCDD
lwl $t0, 1($t1)