From c687c9dc65cf7d18d5733ab6592e3173f08eeee4 Mon Sep 17 00:00:00 2001 From: Leonardo Chieppe Date: Sat, 25 Apr 2020 15:03:21 -0300 Subject: [PATCH] Subtracao subtracao feita --- main.asm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/main.asm b/main.asm index 5509472..1cae359 100644 --- a/main.asm +++ b/main.asm @@ -108,6 +108,9 @@ exec_op:#preparação para chamada das funções do menu addi $t8, $zero, 1 beq $t8, $t9, exec_soma + + addi $t8, $zero, 2 + beq $t8, $t9, exec_subtr exec_soma: jal soma @@ -120,9 +123,14 @@ soma: jr $ra exec_subtr: - #TODO + jal subtr + + j print_result + subtr: - #TODO + sub $v0, $a0, $a1 + + jr $ra #TODO - outras opções