add pseudo instructions test
This commit is contained in:
parent
b663f82705
commit
fafc54ab72
3 changed files with 26 additions and 0 deletions
25
test/masm/pseudo.asm
Normal file
25
test/masm/pseudo.asm
Normal file
|
@ -0,0 +1,25 @@
|
|||
# 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
|
1
test/out/pesudo.status
Normal file
1
test/out/pesudo.status
Normal file
|
@ -0,0 +1 @@
|
|||
0
|
0
test/out/pseudo
Normal file
0
test/out/pseudo
Normal file
Loading…
Reference in a new issue