From d0ef521917e4c77d93c9e35549cd1873d3486407 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Mon, 8 May 2023 09:32:02 +0200 Subject: [PATCH] hexa fixup --- q2/fonctio/tp2/{simp-to-hex.s => spim-to-hex.s} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename q2/fonctio/tp2/{simp-to-hex.s => spim-to-hex.s} (100%) 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