25 lines
246 B
NASM
25 lines
246 B
NASM
# 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
|