diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-06-12 22:26:45 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-06-12 22:34:22 -0700 |
commit | f99cd767a4a4eb400ebefcf45a7a9dab5137ec6a (patch) | |
tree | 608585daef61d1f94c1bf596cdebe88bddc2ac96 /shell | |
parent | 0511b9fd1170da575170bcde2fa617969cbf6a53 (diff) | |
download | mu-f99cd767a4a4eb400ebefcf45a7a9dab5137ec6a.tar.gz |
periodic run of misc_checks
I should really stop using /disp8 jumps at the top-level given how inconvenient it is to check for overly large offsets.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/trace.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/trace.mu b/shell/trace.mu index 3aa80141..298b7e23 100644 --- a/shell/trace.mu +++ b/shell/trace.mu @@ -417,10 +417,10 @@ fn dump-trace-with-label _self: (addr trace), label: (addr array byte) { var i/edx: int <- copy 0 var max-addr/ebx: (addr int) <- get self, first-free var max/ebx: int <- copy *max-addr - $dump-trace:loop: { + $dump-trace-with-label:loop: { compare i, max break-if->= - $dump-trace:iter: { + $dump-trace-with-label:iter: { var offset/ebx: (offset trace-line) <- compute-offset trace, i var curr/ebx: (addr trace-line) <- index trace, offset var curr-label-ah/eax: (addr handle array byte) <- get curr, label |