risc-v-tlm/tests/asm/BasicLoop.asm

12 lines
167 B
NASM
Raw Normal View History

2018-10-07 04:19:29 +08:00
.section .text
.globl _start
_start:
# Basic loop
ADDI t1, zero, 10 # t1 to 10
ADDI t2, zero, 1 #t2 to 1
loop:
SUB t1, t1, t2
BNE t1, zero, loop
# END
ECALL