about summary refs log tree commit diff stats
path: root/misc_checks
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-22 21:38:22 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-22 21:40:03 -0700
commitba4a3c5be70d473479e663be0400b798f88c113d (patch)
treed0e332d7d67302cef5ef31e17152aeaec01b8ab6 /misc_checks
parent5c26d765c7b0f263b48fcb5e903c2f284027859b (diff)
downloadmu-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 'misc_checks')
0 files changed, 0 insertions, 0 deletions
/a> 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181