07-23-2013, 01:58 PM
boriel Wrote:ZX Basic tries to follow FreeBASIC syntax, but at the same time tries to keep some backward compatibility with Sinclair BASIC.FreeBasic is very good (i loved coding <!-- m --><a class="postlink" href="http://www.dosgames.com/forum/about18131.html">http://www.dosgames.com/forum/about18131.html</a><!-- m --> there, for example), but it's not that excellent yet: i think that is quite painful to compile some stuff there that would run decently on CGA display boards on IBM-PCXT machines (CGA modes seems to be simulated from VGA modes... :S ), unless some wise 8088/8086-assembly trick is used (that i didn't find yet...) - maybe Boriel's ZX-Basic Compiler can set goals where FreeBasic fails!
You are right with DOSBox, hdpmi and the like. One solution could be to make ZXBASIC a translator (not exactly a compiler), and use DJGPP © as a backend, so it translates from BASIC to C which will be later compiled with djgpp
But until vacation, I'm afraid I could not make much improvements...