From 166668a189ab2d61e5015a4cde83eb1213fd08e7 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 5 Jun 2020 15:53:48 -0700 Subject: 6474 --- prototypes/browse/11.mu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'prototypes/browse/11.mu') diff --git a/prototypes/browse/11.mu b/prototypes/browse/11.mu index 19a65353..1fa9e980 100644 --- a/prototypes/browse/11.mu +++ b/prototypes/browse/11.mu @@ -34,14 +34,14 @@ fn render in: (addr buffered-file), nrows: int, ncols: int { # hardcoded parameters: # top-margin # page-margin - # text-width + # page-width var _r: render-state var r/edi: (addr render-state) <- address _r var toprow/eax: int <- copy 2 # top-margin var botrow/ecx: int <- copy nrows var leftcol/edx: int <- copy 5 # page-margin var rightcol/ebx: int <- copy leftcol - rightcol <- add 0x40 # text-width = 64 characters + rightcol <- add 0x40 # page-width = 64 characters start-color 0xec, 7 # 236 = darkish gray { compare rightcol, ncols @@ -50,7 +50,7 @@ fn render in: (addr buffered-file), nrows: int, ncols: int { leftcol <- copy rightcol leftcol <- add 5 # page-margin rightcol <- copy leftcol - rightcol <- add 0x40 # text-width + rightcol <- add 0x40 # page-width loop } } -- cgit 1.4.1-2-gfad0