![]() |
Wish Add Betadisk Syntax - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Wishlist (https://www.boriel.com/forum/forumdisplay.php?fid=14) +---- Thread: Wish Add Betadisk Syntax (/showthread.php?tid=725) |
Wish Add Betadisk Syntax - Luzie - 02-23-2016 Hi, my wish: Can you please add Betadisk-BASIC-Syntax: Betadisk 48k TRDOS v4 e.g.: RANDOMIZE USR 15363: REM: SAVE "X" CODE 16384,6912 or: Betadisk 128k TRDOS v5 e.g.: RANDOMIZE USR 15619: REM: SAVE "X" CODE 16384,6912 Both change the adress of the BASIC-interpreter to point behind the REM: and than do a call to ROM Betadisk 48k TRDOS v4 to: 15363 or: Betadisk 128k TRDOS v5 to: 15619 and after that restore the BASIC-interpreter-pointer to the next line Regards, Luzie Re: Wish Add Betadisk Syntax - britlion - 02-24-2016 In a compiled program, it's pure machine code, so the basic interpreter is pretty much unimportant - with a few exceptions of rom data and routines that the compiler links to (one reason it's not ideal for 128K programming). What you really need is someone to write routines that access the beta disk in machine code, and that's not trivial. If they exist, however, they would be fairly easy to include as compiled functions. Since you're not running basic, adjusting the basic interpreter to allow betadisk syntax will have no effect at all. Re: Wish Add Betadisk Syntax - boriel - 03-02-2016 Hey, britlion. Nice to hear you're alive and kicking!! 8) I think it's like Britlion suggest: better create asm inline subroutines and call them from BASIC. It's easier, faster and more portable. Re: Wish Add Betadisk Syntax - LCD - 06-01-2016 Easiest way: Exit to Sinclair BASIC, do the loading from here and then go back to compiled code (all using pokes to control). Then it is easy to ccnvert the loader to other disc systems. |