Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
6
Task/Variables/MIPS-Assembly/variables-3.mips
Normal file
6
Task/Variables/MIPS-Assembly/variables-3.mips
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
.definelabel USER_RAM,0xA0000000
|
||||
foo equ 0x100 ;represents an offset from USER_RAM. Indexed offsetting can only be done at compile time in MIPS.
|
||||
|
||||
la $t0,USER_RAM
|
||||
nop ;load delay slot ($t0 might not be ready by the time the load occurs)
|
||||
lbu $t1,foo($t0) ;load the unsigned byte from memory address 0xA0000100
|
||||
Loading…
Add table
Add a link
Reference in a new issue