diff --git a/q2/fonctio/tp2/simp-to-hex.s b/q2/fonctio/tp2/spim-to-hex.s similarity index 100% rename from q2/fonctio/tp2/simp-to-hex.s rename to q2/fonctio/tp2/spim-to-hex.s index 7f5a8e9..e75add4 100644 --- a/q2/fonctio/tp2/simp-to-hex.s +++ b/q2/fonctio/tp2/spim-to-hex.s @@ -5,7 +5,6 @@ q1: .asciiz "Entrez un nombre" main: li $v0, 4 la $a0, q1 - la $t9, hex syscall li $v0, 5 @@ -16,6 +15,7 @@ main: divi: div $v0, $t0 mfhi $t2 + la $t9, hex addu $t9, $t9, $t2 lb $a0 0($t9) li $v0, 11