mips/test/masm/pseudo.asm

26 lines
246 B
NASM
Raw Normal View History

2024-10-09 16:08:15 +00:00
# Copyright (c) 2024 Freya Murphy
# file: pseudo.asm
# test: test pseudo dsl parser
.text
.align 2
.globl main
main:
li $t0, 0
li $t1, 1
ble $t0, $t1, less
nop
less:
beqz $t0, exit
nop
exit:
# return
slte $a0, $t0, $t1
jr $ra
nop