Skip to content

Commit

Permalink
Subtracao
Browse files Browse the repository at this point in the history
subtracao feita
  • Loading branch information
chieppe7 committed Apr 25, 2020
1 parent 475e1d1 commit c687c9d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit c687c9d

Please sign in to comment.