From 46c84734a4c878d86a7015f4bbcf9e5cab8bcb22 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Sun, 13 May 2001 15:02:27 +0000 Subject: Pouet --- samples/p4.s | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'samples/p4.s') 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 -- cgit v1.2.3