Skip to content
Snippets Groups Projects
Commit c5ba3354 authored by PEREZ-SIERRA ERIC's avatar PEREZ-SIERRA ERIC
Browse files

Commentaires utiles écrits

parent d7b57857
Branches
No related merge requests found
......@@ -11,7 +11,6 @@ space: .asciiz " "
li $v0,5
syscall
move $t0, $v0
# addi $t0, $t0, 1
mul $a0, $t0, $t0
li $v0, 9
......@@ -25,11 +24,15 @@ space: .asciiz " "
li $t6, 15 # Valeur initiale pour toutes les cases (4 murs)
lire_ligne_lab:
li $t3, 0 #int i = 0
li $t3, 0 #int i = 0, ça sert parcourir les lignes
lire_ligne_lab_externe:
bge $t3, $t0, lire_ligne_lab_boucle_ext_fin
# si i est égal a $t0, i.e. l'hauteur et longueur du Labyrinthe, aller à
# lire_ligne_lab_boucle_ext_fin
li $t4, 0 #int j = 0
li $t4, 0 #int j = 0 n
# nimporte quoi
lire_ligne_lab_boucle_interne:
bge $t4, $t0, lire_ligne_lab_boucle_int_fin
......@@ -71,8 +74,10 @@ affiche_lab:
move $t2, $a1
# li $t2, 4 # dimensions
li $t3, 0 #int i = 0
# Deuxième argument mis, c'est la longueur et hauteau du tableau.
li $t3, 0 #int i = 0, pour parcourir les lignes
lire_ligne_lab_externe2:
beq $t3, $t2, lire_ligne_lab_boucle_ext_fin2
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment