MIPS Assembly, loading value from address
Posted: Sun Apr 18, 2010 11:03 am
I want to load a byte by using the 'lb' instruction. In this case I want to use lb to load from the memory mapped address 0x180003fb. The address 0x180003fb is mapped to a serial device used to read/print to a console. However, for some reason I cannot communicate with this device.
Here's the instruction in question.
lb t1, 0x180003fb
That doesn't however load the value located at the address 0x180003fb, it simply stores the hexadecimal value into the register. in this case 0x18000000 (LSD byte). How can I load a value from an address? I've been searching around for about 13 hours now and read trough two MIPS assembly guides รก 200 pages each, just saying in case someone thinks it's obvious and I should Google it : /
Thankful for help.
Here's the instruction in question.
lb t1, 0x180003fb
That doesn't however load the value located at the address 0x180003fb, it simply stores the hexadecimal value into the register. in this case 0x18000000 (LSD byte). How can I load a value from an address? I've been searching around for about 13 hours now and read trough two MIPS assembly guides รก 200 pages each, just saying in case someone thinks it's obvious and I should Google it : /
Thankful for help.