Added ecall to asm example files as commented in issue #7

This commit is contained in:
mariusmonton 2020-07-17 17:02:38 +02:00
parent 04aa12e42d
commit d278b1e0a5
4 changed files with 4 additions and 0 deletions

View File

@ -8,3 +8,4 @@ loop:
SUB t1, t1, t2
BNE t1, zero, loop
# END
ECALL

View File

@ -9,3 +9,4 @@ ADD t4, t1, t2
ADD t5, t2, t3
SUB t6, t2, t1
#SUB t7, t1, t2
ECALL

View File

@ -6,3 +6,4 @@ sb t3, -13(t2)
li t1, 23
lbu t1, -6(t2)
lbu t3, -13(t2)
ecall

View File

@ -32,3 +32,4 @@ _start:
sb t0, 0(a2)
li t0, '\n'
sb t0, 0(a2)
ecall