3 ms·
Warms my heart too, but what interests me most about this story is that I recall assemblers being written this way as a sort of a standard technique in the 70's
by fit2rule 12y ago
Warms my heart too, but what interests me most about this story is that I recall assemblers being written this way as a sort of a standard technique in the 70's and 80's, and it seems to have been a lost art, now recovered (or, at least in 2001) .. I remember some Tandem (or perhaps Wang?) machines used the shell to emit assembly instructions, and in the days of MIPS as a hardware manufacturer (RISCOS pizzabox) there were such assemblers, very rudimentary, for the boot console, so you could emit code to start the machines ..
{Hmm .. what is the term for this, it occurs so often I'm sure there must be a description of it, where new, old stuff becomes new and interesting again?}
- vidarh 12y ago> and in the days of MIPS as a hardware manufacturer (RISCOS pizzabox) I was very confused there for a moment - I'd never heard of RISC OS pizza box in any other context than the Acorn / ARM machines. In case anyone else is similarly confused: This is RISC/os the Unix for MIPS based systems.
- fit2rule 12y agoRight, sorry for the confusion, and thanks for clearing that up.
- mattgodbolt 12y agoJavaScript emulators also use this internal code generator approach. For example the jsbeeb 6502 emulator code is generated from the opcodes text and then 'eval'ed to yield the actual code to run for each instruction. See http://xania.org/201405/jsbeeb-getting-the-timings-right-CPU http://xania.org/201405/jsbeeb-getting-the-timings-right-CPU towards the end.
- mzs 12y agoMaybe you mean rom monitor?