Modifies test slightly because now RAM is relocated to 0x10000
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
# expected: 00000050, 000001AB
|
||||
.text
|
||||
_start:
|
||||
auipc x12, 0x0
|
||||
addi x1, x0, 0x500
|
||||
# Write x1 in the next addi instruction, position 12+2 bytes
|
||||
# Due to type I immediate, x31 must contain 0x050
|
||||
sh x1, 14(x0)
|
||||
sh x1, 18(x12)
|
||||
nop
|
||||
addi x31, x0, 0x0
|
||||
|
||||
@@ -14,8 +15,8 @@ _start:
|
||||
srli x1, x1, 12
|
||||
lui x2, 0x1AB0
|
||||
srli x2, x2, 12
|
||||
sh x1, 44(x0)
|
||||
sh x2, 46(x0)
|
||||
sh x1, 48(x12)
|
||||
sh x2, 50(x12)
|
||||
nop
|
||||
|
||||
# Instruction will be written here
|
||||
|
||||
Reference in New Issue
Block a user