Skip to content

Commit

Permalink
leitura de ponto flutuante
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusMedeiros99 committed Apr 27, 2020
1 parent 319e53a commit 12d4aea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,14 @@ ler_arg:#leitura do primeiro argumento
blt $t8, $t9, exec_op
ler_arg2: #leitura do segundo argumento, se necessário
beq $t9, $t8, ler_float #no calculo do imc, lemos a altura em ponto flutuante
addi $v0, $zero, 5
syscall

ler_float:
addi $v0, $zero, 6
syscall
exec_op:#preparação para chamada das funções do menu
#argumentos dos procedimentos
Expand Down Expand Up @@ -154,6 +159,10 @@ fat_loop:
j fat_loop
end_fat:
jr $ra
exec_fibonacci:


#------------------------------------------------------------------------------------------
# RAIZ
# v0 = raiz(a0)
Expand Down

0 comments on commit 12d4aea

Please sign in to comment.