Added ecall to asm example files as commented in issue #7
This commit is contained in:
parent
04aa12e42d
commit
d278b1e0a5
|
@ -8,3 +8,4 @@ loop:
|
||||||
SUB t1, t1, t2
|
SUB t1, t1, t2
|
||||||
BNE t1, zero, loop
|
BNE t1, zero, loop
|
||||||
# END
|
# END
|
||||||
|
ECALL
|
||||||
|
|
|
@ -9,3 +9,4 @@ ADD t4, t1, t2
|
||||||
ADD t5, t2, t3
|
ADD t5, t2, t3
|
||||||
SUB t6, t2, t1
|
SUB t6, t2, t1
|
||||||
#SUB t7, t1, t2
|
#SUB t7, t1, t2
|
||||||
|
ECALL
|
||||||
|
|
|
@ -6,3 +6,4 @@ sb t3, -13(t2)
|
||||||
li t1, 23
|
li t1, 23
|
||||||
lbu t1, -6(t2)
|
lbu t1, -6(t2)
|
||||||
lbu t3, -13(t2)
|
lbu t3, -13(t2)
|
||||||
|
ecall
|
||||||
|
|
|
@ -32,3 +32,4 @@ _start:
|
||||||
sb t0, 0(a2)
|
sb t0, 0(a2)
|
||||||
li t0, '\n'
|
li t0, '\n'
|
||||||
sb t0, 0(a2)
|
sb t0, 0(a2)
|
||||||
|
ecall
|
||||||
|
|
Loading…
Reference in New Issue