From ba4a3c5be70d473479e663be0400b798f88c113d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 22 Aug 2021 21:38:22 -0700 Subject: 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. --- linux/labels_baremetal | Bin 52042 -> 52290 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'linux/labels_baremetal') diff --git a/linux/labels_baremetal b/linux/labels_baremetal index ce80777e..c1db3ad6 100755 Binary files a/linux/labels_baremetal and b/linux/labels_baremetal differ -- cgit 1.4.1-2-gfad0