X-Git-Url: https://git.piment-noir.org/?p=TD_IML.git;a=blobdiff_plain;f=project%2Fmips1.asm;h=2cba67ed05e73922db4a4df3b1991f0150f49f03;hp=690aca808a2abc420b5a7b08dca485f4d14368b0;hb=433eeade4c411911028e666e3ecd27f912a94abb;hpb=f24104eeb1b24d7710c872adb4cfbe1cf0bcadc4 diff --git a/project/mips1.asm b/project/mips1.asm index 690aca8..2cba67e 100644 --- a/project/mips1.asm +++ b/project/mips1.asm @@ -122,7 +122,7 @@ check_input: addi $t5, $t5, -9 bgez $t5, input - la $s2, ($zero) # Same counter + la $s2, ($zero) # Same counter la $s3 ($zero) compare_input: la $t7, input_value @@ -203,6 +203,7 @@ won: syscall j exit + lost: la $a0, newline li $v0, 4 @@ -212,6 +213,7 @@ lost: syscall j exit + exit: li $v0, 10 - syscall \ No newline at end of file + syscall