From 61ec86b71928afc4a7b0a9c787ba88d5b4b3040b Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 30 Aug 2021 09:21:52 -0700 Subject: . --- html/apps/color-game.mu.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'html/apps/color-game.mu.html') diff --git a/html/apps/color-game.mu.html b/html/apps/color-game.mu.html index 7838733a..e96285ac 100644 --- a/html/apps/color-game.mu.html +++ b/html/apps/color-game.mu.html @@ -66,17 +66,17 @@ if ('onhashchange' in window) { 3 fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) { 4 var second-buffer: screen 5 var second-screen/edi: (addr screen) <- address second-buffer - 6 initialize-screen second-screen, 0x80, 0x30, 1/include-pixels + 6 initialize-screen second-screen, 0x80, 0x30, 1/include-pixels 7 var leftx/edx: int <- copy 0x80 8 var rightx/ebx: int <- copy 0x380 9 { 10 compare leftx, rightx 11 break-if->= -12 clear-screen second-screen +12 clear-screen second-screen 13 # interesting value: 9/blue with 0xe/yellow 14 color-field second-screen, leftx 0x40/y, 0x40/width 0x40/height, 1/blue 15 color-field second-screen, rightx 0x41/y, 0x40/width 0x40/height, 2/green -16 copy-pixels second-screen, screen +16 copy-pixels second-screen, screen 17 # on the first iteration, give everyone a chance to make their guess 18 { 19 compare leftx, 0x80 @@ -104,7 +104,7 @@ if ('onhashchange' in window) { 41 { 42 compare x, xmax 43 break-if->= -44 pixel screen, x, y, color +44 pixel screen, x, y, color 45 x <- add 2 46 loop 47 } @@ -116,7 +116,7 @@ if ('onhashchange' in window) { 53 { 54 compare x, xmax 55 break-if->= -56 pixel screen, x, y, color +56 pixel screen, x, y, color 57 x <- add 2 58 loop 59 } -- cgit 1.4.1-2-gfad0