logoalt Hacker News

johnsondavies10/13/20241 replyview on HN

The assembler is two-pass and the labels are simply local variables in the defcode form. They are assigned the value of the program counter in the first pass, and the assembler instructions are evaluated in the second pass. I got the idea from the assembler in the Acorn Atom, if anyone remembers that.


Replies

kragen10/13/2024

I see! So in fact this compiler can compile arbitrary calls from one function to another, even though the web page says it can't?