Skip to content

Commit

Permalink
Correção de print_result
Browse files Browse the repository at this point in the history
Ao fim de print_result, faltava  um jump  para a main
  • Loading branch information
MarcusMedeiros99 authored Apr 25, 2020
1 parent 475e1d1 commit 3251952
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ print_result:
add $a0, $v0, $zero
addi $v0, $zero, 1
syscall

j main
invalid_op:
#tratamento de opções inválidas
la $a0, error
Expand All @@ -144,4 +145,4 @@ invalid_op:
quit:
#fim do programa
addi $v0, $zero, 10
syscall
syscall

0 comments on commit 3251952

Please sign in to comment.