Re: How to start a SBASIC from other languages (e. g. C, ASM)
Posted: Wed Apr 15, 2020 6:06 pm
Hi Norm,
I have simplified the KEYHOLE method : Now I just RESPR(buffer) in my BOOT program, and open a keyhole file to print the base address to.
Then any job can open the RAM keyhole file and input the buffer base address, which it can then use as required... So NoTHING required !
The deQuirked 'waves' now run fine on QPC2 and Qemulator, both as _bas and _task or _job files. They all also work on SGC with SMSQ/E, and SGC QDOS, albeit very slowly with the latter, because of the heavy graphics calculations involved. (Either EXEC or EX are used there).
I could test for inkey$ in the inner loop, which would make keyboard input much faster, and had to write my own PEEK_$ and POKE_$ for QDOS. The advantage with RESPR(), is that you can LRUN anything, without losing the buffer.
The KEYHOLE method is easy to code, as long as you don't overflow the buffer ! (Easy to monitor the string_$ length...). The learning curve is not steep !
Regards,
Steve.
I have simplified the KEYHOLE method : Now I just RESPR(buffer) in my BOOT program, and open a keyhole file to print the base address to.
Then any job can open the RAM keyhole file and input the buffer base address, which it can then use as required... So NoTHING required !
The deQuirked 'waves' now run fine on QPC2 and Qemulator, both as _bas and _task or _job files. They all also work on SGC with SMSQ/E, and SGC QDOS, albeit very slowly with the latter, because of the heavy graphics calculations involved. (Either EXEC or EX are used there).
I could test for inkey$ in the inner loop, which would make keyboard input much faster, and had to write my own PEEK_$ and POKE_$ for QDOS. The advantage with RESPR(), is that you can LRUN anything, without losing the buffer.
The KEYHOLE method is easy to code, as long as you don't overflow the buffer ! (Easy to monitor the string_$ length...). The learning curve is not steep !
Regards,
Steve.