I think it's possible to make a msxbasic compiler starting from the tokenized form of a saved msxbasic program.
In my mind, those program should load a msxbasic tokenized form and output a true .bin file, in bloadable form
( alike xbasic kun, that however does not have the option 'make bloadable form' )
however there is a thing that is unclear to me...
most gw basic alike interpreters, in order to improve the goto jump speed convert the goto xxxx references into pseudo - memory pointers. for example: during run-time execution the the goto 130 become goto (memadr). what is unclear to me is how can this approach can work in msxbasic? the starting memory for a basic program is not fixed, so are those goto addresses relative?
When The process how changing line number references into addresses is done?
during load?
during editing?
just before starting execution of a basic program (after the immediate mode run?)
on demand? (i do not think... too much complicated)
How can a basic program saved on a 64k machine work in a 16k machine if line addresses are changed in pointers?
Any one know about?
thx