From 2655a4a91d1d2e98cc9ab9c54e70d4eb49c735d6 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 30 Jun 2020 14:54:30 -0700 Subject: 6602 --- html/apps/browse.mu.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'html/apps/browse.mu.html') diff --git a/html/apps/browse.mu.html b/html/apps/browse.mu.html index ddc9170d..b7314157 100644 --- a/html/apps/browse.mu.html +++ b/html/apps/browse.mu.html @@ -66,7 +66,7 @@ if ('onhashchange' in window) { 7 # Press 'q' to quit. All other keys scroll down. 8 9 fn main args-on-stack: (addr array (addr array byte)) -> exit-status/ebx: int { - 10 +-- 20 lines: # var file/esi: (addr buffered-file) = open args-on-stack[1] for reading ------------------------------------------------------------------------------------------------------------------------------------------------------- + 10 +-- 20 lines: # var file/esi: (addr buffered-file) = open args-on-stack[1] for reading -------------------------------------------------------------------------------------------------- 30 enable-screen-grid-mode 31 var nrows/eax: int <- copy 0 32 var ncols/ecx: int <- copy 0 @@ -105,7 +105,7 @@ if ('onhashchange' in window) { 65 var leftcol/edx: int <- copy 5 # page-margin 66 var rightcol/ebx: int <- copy leftcol 67 rightcol <- add 0x40 # page-width = 64 characters - 68 start-color 0xec, 7 # 236 = darkish gray + 68 start-color-on-screen 0xec, 7 # 236 = darkish gray 69 { 70 compare rightcol, ncols 71 break-if->= @@ -126,7 +126,7 @@ if ('onhashchange' in window) { 86 compare row, botrow 87 break-if->= 88 var col/edx: int <- copy leftcol - 89 move-cursor row, col + 89 move-cursor-on-screen row, col 90 { 91 compare col, rightcol 92 break-if->= @@ -136,7 +136,7 @@ if ('onhashchange' in window) { 96 update-attributes c, r 97 compare c, 0xa # newline 98 break-if-= # no need to print newlines - 99 print-byte c + 99 print-byte-to-screen c 100 col <- increment 101 loop 102 } @@ -156,7 +156,7 @@ if ('onhashchange' in window) { 116 { 117 break-if-!= 118 # r->current-state == 0 && c == '*' -119 start-bold +119 start-bold-on-screen 120 copy-to *state, 1 121 break $update-attributes:check-state 122 } @@ -164,7 +164,7 @@ if ('onhashchange' in window) { 124 { 125 break-if-!= 126 # r->current-state == 0 && c == '_' -127 start-bold +127 start-bold-on-screen 128 copy-to *state, 1 129 break $update-attributes:check-state 130 } @@ -176,7 +176,7 @@ if ('onhashchange' in window) { 136 { 137 break-if-!= 138 # r->current-state == 1 && c == '*' -139 reset-formatting +139 reset-formatting-on-screen 140 copy-to *state, 0 141 break $update-attributes:check-state 142 } @@ -184,7 +184,7 @@ if ('onhashchange' in window) { 144 { 145 break-if-!= 146 # r->current-state == 1 && c == '_' -147 reset-formatting +147 reset-formatting-on-screen 148 copy-to *state, 0 149 break $update-attributes:check-state 150 } @@ -199,11 +199,11 @@ if ('onhashchange' in window) { 159 compare row, botrow 160 break-if->= 161 var col/edx: int <- copy leftcol -162 move-cursor row, col +162 move-cursor-on-screen row, col 163 { 164 compare col, rightcol 165 break-if->= -166 print-string " " +166 print-string-to-screen " " 167 col <- increment 168 loop 169 } @@ -216,7 +216,7 @@ if ('onhashchange' in window) { 176 var c/eax: byte <- read-byte-buffered in 177 compare c, 0xffffffff # EOF marker 178 break-if-= -179 print-byte c +179 print-byte-to-screen c 180 loop 181 } -- cgit 1.4.1-2-gfad0