Code: Select all
.data
.global romid1
romid:
.byte 0x01
.byte 0x02
.byte 0x03
.byte 0x04
.byte 0x05
.byte 0x06
.byte 0x07
.byte 0x08
.byte 0x09
.byte 0x0A
.byte 0x0B
.byte 0x0C
Code: Select all
move r0, romid1
ld r1, r0,0 // 0x0201, since register is 16bit so lower bits get stored.
ld r1,r0, 1 // 0x0201, can't off set by 1 byte
ld r1,r0, 4 // 0x0605, can only off set by 4 bytes (32bits)
add r0, r0, 1
ld r1, r0, 0 // 0x0605, by 4 bytes.