summaryrefslogtreecommitdiff
path: root/samples/p4.s
diff options
context:
space:
mode:
Diffstat (limited to 'samples/p4.s')
-rw-r--r--samples/p4.s7
1 files changed, 6 insertions, 1 deletions
diff --git a/samples/p4.s b/samples/p4.s
index 95bb76e..28340fc 100644
--- a/samples/p4.s
+++ b/samples/p4.s
@@ -32,7 +32,7 @@ MsgDrawJ1 DS "|\e[31mO\e[0m"
MsgDrawJ2 DS "|\e[34mO\e[0m"
MsgDrawWall DS "|\n"
MsgsDraw DD MsgDraw, MsgDrawJ1, MsgDrawJ2, MsgDrawWall
-MsgDrawBegin DS "\e[2J 1 2 3 4 5 6 7\n"
+MsgDrawBegin DS "\e[2J\e[0;0H 1 2 3 4 5 6 7\n"
MsgDrawEnd DS "+-+-+-+-+-+-+-+\n"
MsgEndl DS "\n"
@@ -249,6 +249,10 @@ Has4: PUSH R10
CALL Has4V
JNE R12, R0, SortieHas4
+ SUB R11, 1
+ CALL Has4V
+ JNE R12, R0, SortieHas4
+
MOV R9, R0
SortieHas4: POP R12
POP R11
@@ -305,6 +309,7 @@ BoucleJeu: CALL AfficheP4
MOV R2, 2
SautBoucleJeu: SUB R3, 1
JNE R3, R0, BoucleJeu
+ CALL AfficheP4
MOV, [0xffffff04], MsgEgalite
RET
Gagne: CALL AfficheP4