From 7ad6093d69afa90de243e72868f0d463dcd5eae7 Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 17 Apr 2025 19:39:06 -0400 Subject: Add new push/pop test case, ensure generated files end in .rv --- input/dominative-functions.asm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'input/dominative-functions.asm') diff --git a/input/dominative-functions.asm b/input/dominative-functions.asm index d11ddcb..0931918 100644 --- a/input/dominative-functions.asm +++ b/input/dominative-functions.asm @@ -1,7 +1,6 @@ ;;;;;;;; ;;; makes use of a designated function to add two numbers together ;;; uses a stack-based paradigm with a base pointer to manage argument passing -;;; TODO this file is incomplete due to remaining ISA subroutine design issues .data answer 0 @@ -19,7 +18,7 @@ MAIN: SUB23: push $5 ; push old frame pointer addi $5 $2 0x0 - subi $2 $2 0x4 + subi $2 $2 0x1 addi $6 $0 -23 store $6 -4($5) @@ -39,7 +38,7 @@ SUB23: ADD76: push $5 addi $5 $2 0x0 - subi $2 $2 0x4 + subi $2 $2 0x1 addi $6 $0 +76 store $6 -4($5) -- cgit v1.2.3