From fafc54ab7237b2d0788f6ec29fae638682d043b4 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 9 Oct 2024 12:08:15 -0400 Subject: [PATCH] add pseudo instructions test --- test/masm/pseudo.asm | 25 +++++++++++++++++++++++++ test/out/pesudo.status | 1 + test/out/pseudo | 0 3 files changed, 26 insertions(+) create mode 100644 test/masm/pseudo.asm create mode 100644 test/out/pesudo.status create mode 100644 test/out/pseudo diff --git a/test/masm/pseudo.asm b/test/masm/pseudo.asm new file mode 100644 index 0000000..c8032ec --- /dev/null +++ b/test/masm/pseudo.asm @@ -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 diff --git a/test/out/pesudo.status b/test/out/pesudo.status new file mode 100644 index 0000000..573541a --- /dev/null +++ b/test/out/pesudo.status @@ -0,0 +1 @@ +0 diff --git a/test/out/pseudo b/test/out/pseudo new file mode 100644 index 0000000..e69de29