load (word only) appears to be working
This commit is contained in:
50
test/test.S
50
test/test.S
@ -210,28 +210,34 @@ test9:
|
||||
|
||||
test10:
|
||||
addi x30, x0, 10 # x30 = 10
|
||||
# # now for some memory stuff
|
||||
# # sw
|
||||
# la x9, someint # x9 = start of .bss
|
||||
# lui x10, 0x12345 # x10 = 0x12345000
|
||||
# addi x10, x10, 0x678 # x10 = 0x12345678
|
||||
# nop
|
||||
# nop
|
||||
# nop
|
||||
# nop
|
||||
# nop
|
||||
# sw x10, 0(x9) # someint = 0x12345678
|
||||
# nop
|
||||
# nop
|
||||
# nop
|
||||
# nop
|
||||
# nop
|
||||
# # lw x11, 0(x9) # x11 = 0x12345678
|
||||
# nop
|
||||
# nop
|
||||
# nop
|
||||
# nop
|
||||
# nop
|
||||
# now for some memory stuff
|
||||
# sw
|
||||
la x9, someint # x9 = start of .bss
|
||||
lui x10, 0x12345 # x10 = 0x12345000
|
||||
addi x10, x10, 0x678 # x10 = 0x12345678
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
lw x11, 0(x9) # x11 = 0xfedcba98
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
sw x10, 0(x9) # someint = 0x12345678
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
lw x12, 0(x9) # x12 = 0x12345678
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
|
||||
|
||||
done:
|
||||
|
Reference in New Issue
Block a user