diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-06-29 19:16:36 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-06-29 19:16:36 -0700 |
commit | 6c7f7abdb867084f1e7555105cfa140eae4f6372 (patch) | |
tree | 47918b44ecc85fcf3573189a3574f59014787514 | |
parent | 222548962c9ed85c9d5057757287d0b0b069af02 (diff) | |
download | mu-6c7f7abdb867084f1e7555105cfa140eae4f6372.tar.gz |
6600
44 files changed, 66 insertions, 66 deletions
diff --git a/103screen.subx b/103screen.subx index 0fe5a2ee..0c893ec7 100644 --- a/103screen.subx +++ b/103screen.subx @@ -132,7 +132,7 @@ $print-string-to-screen:end: c3/return # just because Mu has no support for global variables yet -print-byte: # c: byte +print-byte-to-screen: # c: byte # . prologue 55/push-ebp 89/<- %ebp 4/r32/esp @@ -143,7 +143,7 @@ print-byte: # c: byte 68/push 4/imm32/size 89/<- %ecx 4/r32/esp (write 2 %ecx) -$print-byte:end: +$print-byte-to-screen:end: # . reclaim locals 81 0/subop/add %esp 8/imm32 # . restore registers diff --git a/apps/browse.mu b/apps/browse.mu index 0f34e11e..7b402e33 100644 --- a/apps/browse.mu +++ b/apps/browse.mu @@ -96,7 +96,7 @@ $line-loop: { update-attributes c, r compare c, 0xa # newline break-if-= # no need to print newlines - print-byte c + print-byte-to-screen c col <- increment loop } @@ -176,6 +176,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/apps/print-file.mu b/apps/print-file.mu index ec9f9367..0fb21132 100644 --- a/apps/print-file.mu +++ b/apps/print-file.mu @@ -31,7 +31,7 @@ $main-body: { var c/eax: byte <- read-byte-buffered in-addr compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } } diff --git a/prototypes/browse/1-print-file.mu b/prototypes/browse/1-print-file.mu index ea441572..58e65171 100644 --- a/prototypes/browse/1-print-file.mu +++ b/prototypes/browse/1-print-file.mu @@ -26,7 +26,7 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } } diff --git a/prototypes/browse/10.mu b/prototypes/browse/10.mu index a07f8aa8..5c760de4 100644 --- a/prototypes/browse/10.mu +++ b/prototypes/browse/10.mu @@ -75,7 +75,7 @@ $line-loop: { compare c, 0xa # newline break-if-= # no need to print newlines # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -171,6 +171,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/11.mu b/prototypes/browse/11.mu index 86440eb9..ab7585b0 100644 --- a/prototypes/browse/11.mu +++ b/prototypes/browse/11.mu @@ -119,7 +119,7 @@ $update-attributes:check-state: { compare c, 0xa # newline break-if-= # no need to print newlines # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -167,6 +167,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/12.mu b/prototypes/browse/12.mu index d3871d40..60d169c8 100644 --- a/prototypes/browse/12.mu +++ b/prototypes/browse/12.mu @@ -98,7 +98,7 @@ $update-attributes:check-state: { { break-if-!= # r->current-state == 1 && c == '*' => print c, then normal text - print-byte c + print-byte-to-screen c col <- increment reset-formatting start-color 0xec, 7 # 236 = darkish gray @@ -109,7 +109,7 @@ $update-attributes:check-state: { { break-if-!= # r->current-state == 1 && c == '_' => print c, then normal text - print-byte c + print-byte-to-screen c col <- increment reset-formatting start-color 0xec, 7 # 236 = darkish gray @@ -122,7 +122,7 @@ $update-attributes:check-state: { compare c, 0xa # newline break-if-= # no need to print newlines # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -170,6 +170,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/13.mu b/prototypes/browse/13.mu index 47b2b398..a4d2801e 100644 --- a/prototypes/browse/13.mu +++ b/prototypes/browse/13.mu @@ -99,7 +99,7 @@ $update-attributes:check-state: { { break-if-!= # r->current-state == 1 && c == '*' => print c, then normal text - print-byte c + print-byte-to-screen c col <- increment reset-formatting start-color 0xec, 7 # 236 = darkish gray @@ -110,7 +110,7 @@ $update-attributes:check-state: { { break-if-!= # r->current-state == 1 && c == '_' => print c, then normal text - print-byte c + print-byte-to-screen c col <- increment reset-formatting start-color 0xec, 7 # 236 = darkish gray @@ -123,7 +123,7 @@ $update-attributes:check-state: { compare c, 0xa # newline break-if-= # no need to print newlines # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -171,6 +171,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/14.mu b/prototypes/browse/14.mu index 4f4229af..cb76d673 100644 --- a/prototypes/browse/14.mu +++ b/prototypes/browse/14.mu @@ -97,7 +97,7 @@ $change-state: { { break-if-!= # r->current-state == 1 && c == '*' => print c, then normal text - print-byte c + print-byte-to-screen c col <- increment reset-formatting start-color 0xec, 7 # 236 = darkish gray @@ -108,7 +108,7 @@ $change-state: { { break-if-!= # r->current-state == 1 && c == '_' => print c, then normal text - print-byte c + print-byte-to-screen c col <- increment reset-formatting start-color 0xec, 7 # 236 = darkish gray @@ -121,7 +121,7 @@ $change-state: { compare c, 0xa # newline break-if-= # no need to print newlines # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -169,6 +169,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/15-headers-broken.mu b/prototypes/browse/15-headers-broken.mu index 30461744..65fbda44 100644 --- a/prototypes/browse/15-headers-broken.mu +++ b/prototypes/browse/15-headers-broken.mu @@ -121,7 +121,7 @@ $change-state: { { break-if-!= # r->current-state == 1 && c == '*' => print c, then normal text - print-byte c + print-byte-to-screen c col <- increment reset-formatting start-color 0xec, 7 # 236 = darkish gray @@ -132,7 +132,7 @@ $change-state: { { break-if-!= # r->current-state == 1 && c == '_' => print c, then normal text - print-byte c + print-byte-to-screen c col <- increment reset-formatting start-color 0xec, 7 # 236 = darkish gray @@ -163,7 +163,7 @@ $change-state: { copy-to *s, 0 # false } # print c - print-byte c + print-byte-to-screen c col <- increment loop } @@ -211,6 +211,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/16-screen-state-broken.mu b/prototypes/browse/16-screen-state-broken.mu index 6fe7f3eb..089887e7 100644 --- a/prototypes/browse/16-screen-state-broken.mu +++ b/prototypes/browse/16-screen-state-broken.mu @@ -183,6 +183,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/17-file-state-broken/file-state.mu b/prototypes/browse/17-file-state-broken/file-state.mu index 12fb75c3..66b8c6c4 100644 --- a/prototypes/browse/17-file-state-broken/file-state.mu +++ b/prototypes/browse/17-file-state-broken/file-state.mu @@ -28,6 +28,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/18/file-state.mu b/prototypes/browse/18/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/18/file-state.mu +++ b/prototypes/browse/18/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/18/main.mu b/prototypes/browse/18/main.mu index 7bb7d07d..21e3f0c7 100644 --- a/prototypes/browse/18/main.mu +++ b/prototypes/browse/18/main.mu @@ -19,7 +19,7 @@ fn render-normal fs: (addr file-state) { compare c, 0xffffffff # EOF marker break-if-= # - print-byte c + print-byte-to-screen c # loop } diff --git a/prototypes/browse/19/file-state.mu b/prototypes/browse/19/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/19/file-state.mu +++ b/prototypes/browse/19/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/19/screen-position-state.mu b/prototypes/browse/19/screen-position-state.mu index 690cb60d..bd11b551 100644 --- a/prototypes/browse/19/screen-position-state.mu +++ b/prototypes/browse/19/screen-position-state.mu @@ -63,7 +63,7 @@ fn start-drawing _self: (addr screen-position-state) { fn add-char _self: (addr screen-position-state), c: byte { var self/esi: (addr screen-position-state) <- copy _self # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/2.mu b/prototypes/browse/2.mu index 26d0637e..0c31e82a 100644 --- a/prototypes/browse/2.mu +++ b/prototypes/browse/2.mu @@ -25,7 +25,7 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } } diff --git a/prototypes/browse/20/file-state.mu b/prototypes/browse/20/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/20/file-state.mu +++ b/prototypes/browse/20/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/20/screen-position-state.mu b/prototypes/browse/20/screen-position-state.mu index 124505cb..a85bc4a5 100644 --- a/prototypes/browse/20/screen-position-state.mu +++ b/prototypes/browse/20/screen-position-state.mu @@ -71,7 +71,7 @@ $add-char:body: { break $add-char:body } # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/21/file-state.mu b/prototypes/browse/21/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/21/file-state.mu +++ b/prototypes/browse/21/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/21/screen-position-state.mu b/prototypes/browse/21/screen-position-state.mu index bb0adc97..2a4b4327 100644 --- a/prototypes/browse/21/screen-position-state.mu +++ b/prototypes/browse/21/screen-position-state.mu @@ -70,7 +70,7 @@ $add-char:body: { break $add-char:body } # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/22/file-state.mu b/prototypes/browse/22/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/22/file-state.mu +++ b/prototypes/browse/22/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/22/screen-position-state.mu b/prototypes/browse/22/screen-position-state.mu index 9f12470a..8c72168d 100644 --- a/prototypes/browse/22/screen-position-state.mu +++ b/prototypes/browse/22/screen-position-state.mu @@ -70,7 +70,7 @@ $add-char:body: { break $add-char:body } # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/23-multiple-pages/file-state.mu b/prototypes/browse/23-multiple-pages/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/23-multiple-pages/file-state.mu +++ b/prototypes/browse/23-multiple-pages/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/23-multiple-pages/screen-position-state.mu b/prototypes/browse/23-multiple-pages/screen-position-state.mu index 62161108..41ad877d 100644 --- a/prototypes/browse/23-multiple-pages/screen-position-state.mu +++ b/prototypes/browse/23-multiple-pages/screen-position-state.mu @@ -71,7 +71,7 @@ $add-char:body: { break $add-char:body } # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/24-bold/file-state.mu b/prototypes/browse/24-bold/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/24-bold/file-state.mu +++ b/prototypes/browse/24-bold/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/24-bold/screen-position-state.mu b/prototypes/browse/24-bold/screen-position-state.mu index 62161108..41ad877d 100644 --- a/prototypes/browse/24-bold/screen-position-state.mu +++ b/prototypes/browse/24-bold/screen-position-state.mu @@ -71,7 +71,7 @@ $add-char:body: { break $add-char:body } # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/25-soft-newlines/file-state.mu b/prototypes/browse/25-soft-newlines/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/25-soft-newlines/file-state.mu +++ b/prototypes/browse/25-soft-newlines/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/25-soft-newlines/screen-position-state.mu b/prototypes/browse/25-soft-newlines/screen-position-state.mu index dcf3722a..51f7e7c8 100644 --- a/prototypes/browse/25-soft-newlines/screen-position-state.mu +++ b/prototypes/browse/25-soft-newlines/screen-position-state.mu @@ -72,7 +72,7 @@ $add-char:body: { break $add-char:body } # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/26-headers/file-state.mu b/prototypes/browse/26-headers/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/26-headers/file-state.mu +++ b/prototypes/browse/26-headers/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/26-headers/screen-position-state.mu b/prototypes/browse/26-headers/screen-position-state.mu index dcf3722a..51f7e7c8 100644 --- a/prototypes/browse/26-headers/screen-position-state.mu +++ b/prototypes/browse/26-headers/screen-position-state.mu @@ -72,7 +72,7 @@ $add-char:body: { break $add-char:body } # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/27/file-state.mu b/prototypes/browse/27/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/27/file-state.mu +++ b/prototypes/browse/27/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/27/screen-position-state.mu b/prototypes/browse/27/screen-position-state.mu index dcf3722a..51f7e7c8 100644 --- a/prototypes/browse/27/screen-position-state.mu +++ b/prototypes/browse/27/screen-position-state.mu @@ -72,7 +72,7 @@ $add-char:body: { break $add-char:body } # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/28/file-state.mu b/prototypes/browse/28/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/28/file-state.mu +++ b/prototypes/browse/28/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/28/screen-position-state.mu b/prototypes/browse/28/screen-position-state.mu index dcf3722a..51f7e7c8 100644 --- a/prototypes/browse/28/screen-position-state.mu +++ b/prototypes/browse/28/screen-position-state.mu @@ -72,7 +72,7 @@ $add-char:body: { break $add-char:body } # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/29/file-state.mu b/prototypes/browse/29/file-state.mu index 35f40229..0047b2c0 100644 --- a/prototypes/browse/29/file-state.mu +++ b/prototypes/browse/29/file-state.mu @@ -39,6 +39,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/29/screen-position-state.mu b/prototypes/browse/29/screen-position-state.mu index dcf3722a..51f7e7c8 100644 --- a/prototypes/browse/29/screen-position-state.mu +++ b/prototypes/browse/29/screen-position-state.mu @@ -72,7 +72,7 @@ $add-char:body: { break $add-char:body } # print c - print-byte c + print-byte-to-screen c # self->col++ var tmp/eax: (addr int) <- get self, col increment *tmp diff --git a/prototypes/browse/3.mu b/prototypes/browse/3.mu index 3282f3be..b3b731de 100644 --- a/prototypes/browse/3.mu +++ b/prototypes/browse/3.mu @@ -24,6 +24,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/4-render-page.mu b/prototypes/browse/4-render-page.mu index 77fd6b7f..2799acc7 100644 --- a/prototypes/browse/4-render-page.mu +++ b/prototypes/browse/4-render-page.mu @@ -29,7 +29,7 @@ $line-loop: { compare c, 0xffffffff # EOF marker break-if-= $line-loop # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -76,6 +76,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/5.mu b/prototypes/browse/5.mu index 99d176b5..67a1498e 100644 --- a/prototypes/browse/5.mu +++ b/prototypes/browse/5.mu @@ -31,7 +31,7 @@ $line-loop: { compare c, 0xa # newline break-if-= # no need to print newlines # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -78,6 +78,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/6.mu b/prototypes/browse/6.mu index d71db2fb..8acccddb 100644 --- a/prototypes/browse/6.mu +++ b/prototypes/browse/6.mu @@ -42,7 +42,7 @@ $line-loop: { compare c, 0xa # newline break-if-= # no need to print newlines # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -89,6 +89,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/7.mu b/prototypes/browse/7.mu index db4a7ac9..b4118e29 100644 --- a/prototypes/browse/7.mu +++ b/prototypes/browse/7.mu @@ -46,7 +46,7 @@ $line-loop: { compare c, 0xa # newline break-if-= # no need to print newlines # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -94,6 +94,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/8-multiple-pages.mu b/prototypes/browse/8-multiple-pages.mu index 25ad0863..01361738 100644 --- a/prototypes/browse/8-multiple-pages.mu +++ b/prototypes/browse/8-multiple-pages.mu @@ -62,7 +62,7 @@ $line-loop: { compare c, 0xa # newline break-if-= # no need to print newlines # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -110,6 +110,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } diff --git a/prototypes/browse/9-bold.mu b/prototypes/browse/9-bold.mu index fca50472..e9e6f313 100644 --- a/prototypes/browse/9-bold.mu +++ b/prototypes/browse/9-bold.mu @@ -70,7 +70,7 @@ $line-loop: { compare c, 0xa # newline break-if-= # no need to print newlines # print c - print-byte c + print-byte-to-screen c col <- increment loop } # $char-loop @@ -147,6 +147,6 @@ fn dump in: (addr buffered-file) { var c/eax: byte <- read-byte-buffered in compare c, 0xffffffff # EOF marker break-if-= - print-byte c + print-byte-to-screen c loop } |