Re: "tweetable" "symbolic" hex COM loader
Dave Long <[email protected]> Thu, 3 Jan 2013 13:20:15 +0100
| Newsgroups | gmane.culture.people.kragen.discuss |
|---|---|
| Message-ID | <[email protected]> |
> My temptation to write a one-pass stack-based octal version is even
> greater now
> :). It probably can't be under 40 bytes, but maybe it could be
> under 70. And
> it could be used to write the above.
Did you ever write that version?
-Dave
FWIW, I just looked at where I left things off last May. Judging
from the contents of the last floppy image, I'd given up on hand-
coding and switched to NASM w/ macros, resulting in the following
combinations:
octal hex
loader 75 77
one-pass 91 93
two-pass 107 109
However: none of the loops in these applications overlap, or even
nest, so in principle one could start even more simply, with a single-
entry symbol "table" for loops which is then expanded to a full stack-
based implementation. (although, unless your name is de Bruijn, I
wouldn't recommend this approach for absolute relocations...)
--
To unsubscribe: http://lists.canonical.org/mailman/listinfo/kragen-discuss