summaryrefslogtreecommitdiff
path: root/samples/p4.s
diff options
context:
space:
mode:
authorPixel <>2001-05-13 15:02:27 +0000
committerPixel <>2001-05-13 15:02:27 +0000
commit46c84734a4c878d86a7015f4bbcf9e5cab8bcb22 (patch)
tree120531b9b38812338a76bf5ac32a70f3295fc434 /samples/p4.s
parentd5926835b392801dc48e2ccaffaead1de40c7a4a (diff)
Pouet
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