3 ms·
How does the stack work? I assume $1DA7 is the outer interpreter loop? What is $3BB0 for?
by sitkack 6y ago
How does the stack work?
I assume $1DA7 is the outer interpreter loop?
What is $3BB0 for?
- timonoko 6y agoThe stack is regular 16 bit CPU-stack. Unlike most or all others, i was using the CPU stack for Lisp-nodes. The garbage collector made many errors when marking data from CPU stack. But it does not matter, with 16 bits you can have 65000 nodes, enough for all eternity. JMP $1DA7 is basically return-from-closure. (subru: eval=$7149, compile=$3BB0) means that compiled functions are treated differently, when called from intrepreter and compiler. It was direct machine-code CALL in compiled code.