assembly - Load byte offset confusion -
when code runs, 4 stored in $t2
. in thinking, though, in order load last byte, offset need 11, 0x04 12th byte after item
. not understanding here?
lbu $t2, 8($t0) .data item: .word 0x11111111 .word 0xabcd0123 .word 0x01020304
i suspect number being stored in 'little endian' format, integer 0x01020304
represented in memory bytes 04,03,02,01
(in order). 0x04 thought last byte in word (offset 11), first byte (offset 8).
Comments
Post a Comment