diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-02-14 15:09:16 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-02-14 15:09:16 -0800 |
commit | 72f9fdbd16c715e38362502c6c7af88f6da2d69d (patch) | |
tree | 802a059124ae18b84d11b8514a3b90646cf3cb0b /baremetal/500text-screen.mu | |
parent | 1010b50bb86da505f8002dd142cec0a37b13b8a2 (diff) | |
download | mu-72f9fdbd16c715e38362502c6c7af88f6da2d69d.tar.gz |
7743
First bugfix in baremetal/shell. Already it's much easier to debug.
Diffstat (limited to 'baremetal/500text-screen.mu')
-rw-r--r-- | baremetal/500text-screen.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/baremetal/500text-screen.mu b/baremetal/500text-screen.mu index 8ddc0e26..a764aa06 100644 --- a/baremetal/500text-screen.mu +++ b/baremetal/500text-screen.mu @@ -107,9 +107,9 @@ fn screen-cell-index screen-on-stack: (addr screen), x: int, y: int -> _/ecx: in break-if-< abort "tried to print out of screen bounds" } - var height-addr/eax: (addr int) <- get screen, height + var width-addr/eax: (addr int) <- get screen, width var result/ecx: int <- copy y - result <- multiply *height-addr + result <- multiply *width-addr result <- add x return result } |