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

Bug corrigé

parent dc809d2c
Branches
Tags
No related merge requests found
......@@ -2,8 +2,10 @@
prompt: .asciiz "Donnez les dimensions du labyrinthe:\n"
ligne: .asciiz "\n"
space: .asciiz " "
non_avancer: .asciiz "La cellule ne peut pas avancer vers cette direcion\n"
.text
li $v0, 4
la $a0, prompt
syscall
......@@ -104,11 +106,10 @@ après:
#syscall
# Afficher le lab une autre fois pour verifier que la valeur ait vraiment changé
move $a0, $s0
li $a1, 5
# move $a1, $s1
#move $a1, $t0
# $a0 contient maintenant l'adresse du premier element, maintenant il faut afficher le labyrinthe
# à partir de ça
move $a1, $s1
jal affiche_lab
......@@ -209,6 +210,17 @@ affiche_lab:
lire_ligne_lab_boucle_ext_fin2:
jr $ra
#avance:
# move $t0, $a0
# move $t1, $a1
# move $t2, $a2 # 1,2,3,4 pour la direction
# li $t3, 4
# limites
......
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