From 475e1d1133e05e1806e7dcf3688ebcddd034bbeb Mon Sep 17 00:00:00 2001 From: MarcusMedeiros99 Date: Sat, 25 Apr 2020 12:14:09 -0300 Subject: [PATCH] Adicionar op no menu --- main.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.asm b/main.asm index a3c4bba..5509472 100644 --- a/main.asm +++ b/main.asm @@ -29,6 +29,7 @@ op_6: .asciiz " 6 - calc_imc\n" op_7: .asciiz " 7 - raiz_q\n" op_8: .asciiz " 8 - tabuada\n" op_9: .asciiz " 9 - fatorial\n" +op_10: .asciiz "10 - fibonacci\n" op_0: .asciiz " 0 - quit\n" error: .asciiz "Opcao invalida\n" @@ -82,7 +83,7 @@ ler_op: bltz $t9, invalid_op #op negativa - addi $t8, $zero, 9 + addi $t8, $zero, 10 ble $t8, $t9, invalid_op #op maior que 9 ler_arg:#leitura do primeiro argumento