I am trying to learn the MIPS assembly language myself using the MARS simulator.
For didactic reasons, I limit myself to not using pseudo-instructions.
When I tried to get the address of some data into the register, I ran into a problem because I can not use la .
I tried using lui in conjunction with ori , just as if I were to download the number directly, to no avail:
.data arr: .byte 0xa1 .byte 0xb2 .byte 0xc3 .byte 0xd4 .byte 0xe5 .byte 0xf6 .byte 0x7a .byte 0x8b .byte 0x9c .byte 0xad .text lui $s0, mem # <--- mars just gives me errors here :( ori $s0, mem # ?? ...
Is this being done using, in particular, MARS, without pseudo-instructions? How?
Thanks in advance!
source share