diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-08-22 21:38:22 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-08-22 21:40:03 -0700 |
commit | ba4a3c5be70d473479e663be0400b798f88c113d (patch) | |
tree | d0e332d7d67302cef5ef31e17152aeaec01b8ab6 /subx_opcodes | |
parent | 5c26d765c7b0f263b48fcb5e903c2f284027859b (diff) | |
download | mu-ba4a3c5be70d473479e663be0400b798f88c113d.tar.gz |
start throwing error on labels too far for /disp8
While I'm doing this I might as well lay out a story I don't seem to have told before in this commit log. I translated Mu programs to Linux before I did so to bare metal like I do in the top-level these days. The translator programs still run from the linux/ directory. However they don't always have good error messages. As long as I was translating to Linux this wasn't a huge deal because I always translated Mu programs using the bootstrap translator in linux/bootstrap/ -- which has great error messages. However, linux/bootstrap/ can't build bare-metal programs because boot.subx uses real-mode instructions that aren't supported. As a hack I created a script called misc_checks that at least tries to run everything besides boot.subx -- even though translation can never succeed. If I run it and get to errors about unknown variables I know everything besides boot.subx raised no errors. Having labels too far in /disp8 args is is the single biggest reason we need the misc_checks hack. Hopefully it's now obsolete.
Diffstat (limited to 'subx_opcodes')
0 files changed, 0 insertions, 0 deletions