risc-v-tlm/asm/BasicLoop.asm

11 lines
159 B
NASM
Raw Normal View History

2018-09-20 05:52:48 +08:00
.section .text
.globl _start
_start:
2018-09-11 00:44:54 +08:00
# 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