mirror of
https://gitlab.com/brendanhaines/cpu.git
synced 2024-11-09 21:14:57 -07:00
uncommitted changes
This commit is contained in:
parent
a2a85fd10b
commit
96c9a06589
10
test/test.S
10
test/test.S
|
@ -338,11 +338,6 @@ loop:
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
|
|
||||||
# jalr
|
|
||||||
test_jalr:
|
|
||||||
addi x2, x0, 0x12 # x2 = 0x12
|
|
||||||
jalr x0, x1, 0 # return
|
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
# set some registers to make it blatantly obvious an error occurred
|
# set some registers to make it blatantly obvious an error occurred
|
||||||
addi x1, x0, 0x7ff # x1 = 0x1111
|
addi x1, x0, 0x7ff # x1 = 0x1111
|
||||||
|
@ -362,6 +357,11 @@ fail:
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
|
|
||||||
|
# jalr
|
||||||
|
test_jalr:
|
||||||
|
addi x2, x0, 0x12 # x2 = 0x12
|
||||||
|
jalr x0, x1, 0 # return
|
||||||
|
|
||||||
|
|
||||||
.data
|
.data
|
||||||
someint:
|
someint:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user