Closed bobbimanners closed 6 years ago
Started looking at this.
1) Right now if we invoke parseline()
from readfile()
it blows up because readbuf
gets trashed. The easy fix here is to have another 256 word buffer. Probably we can clean things up and get rid of this later.
2) Bigger issue ... right now when we make a subroutine call the compiler searches through the source for the called function. To compile from source we have to make a define-before-use rule. This needs further thought before I just hack something together.
Now that I have extended memory support working, this seems to be superfluous. It is easier to just load a big file into extended memory - ~48K on Apple II.
Right now the source is always loaded into memory. It would be nice to be able to compile with source direct from disk (loading a line at a time, or using say a 256 byte buffer). This would allow larger programs to be compiled (at the expense of not being able to use the interpreter on such files.)