I have added Basic'N (alias Basic Kun) 2.1 (latest with R800 support) to msxsyssrc project for those who find it interesting.
Already commented quite extensively.
Source file can be found here:source
Login or register to post comments
I have added Basic'N (alias Basic Kun) 2.1 (latest with R800 support) to msxsyssrc project for those who find it interesting.
Already commented quite extensively.
Source file can be found here:source
Interesting... Any hope to make a stand alone basic compiler out of it?
I don't think standalone compiler possible with low effort. F.e. some statements can't be compiled, you should turn the Kun off and then back to on after using those. Looks like regular Basic and Kun are very closely tied together
Nice!
About 10 years ago I actually separated the compiler and runtime library to two different 16kB memory mapper pages in order to make room for further improvements. This was not quite "stand alone basic compiler", but a good step to that direction and made it possible to add new things such as INPUT$, better variable handling, line interrupt support etc. This was based on disassembly made by Guywer9000. The improvement project anyway got abandoned mostly because I got fed up struggling with the git version control I was required to use, but not familiar with. I feel I mostly caused just "version mayhem" several times, so I stopped before causing more destruction. Maybe I'll ask permission to source some day again if I get more familiar with the subject, but at least currently I've just removed everything git related from my computer. I think in theory version control is such a nice idea, it is not out of the question I end up investigating it some day again.
Interesting... Any hope to make a stand alone basic compiler out of it?
Would be possible, but may be an for MSX BASIC adapted BASCOM would be an other approach
Give a try to MSXBAS2ROM, a brand new experimental MSX Basic compiler based on Basic Kun.
MSXBAS2ROM is a command line tool thats run on Windows/Linux, and you can create a compiled ROM file from your Basic code using the "-c" parameter just like this:
msxbas2rom -c program.bas
More information:
Don't you have an account yet? Become an MSX-friend and register an account!