pixelmischief Posted June 29, 2020 Share Posted June 29, 2020 (edited) How do I do POS and PRINT #6 in graphics 1+16? It isn't working in FastBASIC. EDIT: Found it. Comma instead of semi-colon. GR. 1+16: PRINT #6,"HELLO" Edited June 30, 2020 by pixelmischief Quote Link to comment Share on other sites More sharing options...
dmsc Posted June 30, 2020 Share Posted June 30, 2020 Hi! 1 hour ago, pixelmischief said: How do I do POS and PRINT #6 in graphics 1+16? It isn't working in FastBASIC. This program: GR. 16+1 ? #6, "#" POS. 1, 1: ? #6,"HOLA" POS. 2, 2: ? #6,"chao" REPEAT UNTIL KEY() Produces this output: There is a little incompatibility between FastBasic and Atari BASIC: in Fastbasic you always put a comma after the I/O channel, instead of the ";" in Atari BASIC, so the following are equivalent: Atari BASIC: ? #6,"A" : ? #6;"A" FastBasic: ? #6,,"A" : ? #6,"A" The reason for the incompatibility is because I tough the Atari BASIC syntax was not very logical (as it is different than other I/O channel specs), and in the first versions also it was shorter to implement. Have Fun! 1 Quote Link to comment Share on other sites More sharing options...
pixelmischief Posted June 30, 2020 Author Share Posted June 30, 2020 (edited) @dmsc You might want to merge the PRINT #ioch and plain old PRINT sections of your manual. Or duplicate this particular tidbit in both places. Having found the first PRINT statement reference, I didn't look for the second. Found it by accident. Edited June 30, 2020 by pixelmischief 2 Quote Link to comment Share on other sites More sharing options...
dmsc Posted June 30, 2020 Share Posted June 30, 2020 Hi! 2 minutes ago, pixelmischief said: @dmsc You might want to merge the PRINT #ioch and plain old PRINT sections of your manual. Or duplicate this particular tidbit in both places. Having found the first PRINT statement reference, I didn't look for the second. FOund it by accident. Yes, I tried to group statements by use, so I separated the PRINT and INPUT to the console from the "PRINT #" and "INPUT #". Do you think that adding a note "See the Device Input and Output Statements section for the PRINT # usage" (and the same at the INPUT) would work? Or perhaps "For the PRINT with I/O channel (PRINT #), see the Device Input and Output Statements section bellow" ? Thanks! Quote Link to comment Share on other sites More sharing options...
pixelmischief Posted June 30, 2020 Author Share Posted June 30, 2020 @dmsc Yeah. That will work just fine. Quote Link to comment Share on other sites More sharing options...
dmsc Posted June 30, 2020 Share Posted June 30, 2020 Hi! 1 hour ago, pixelmischief said: @dmsc Yeah. That will work just fine. Done, see at https://github.com/dmsc/fastbasic/blob/master/manual.md#console-print-and-input-statements Have Fun! Quote Link to comment Share on other sites More sharing options...
pixelmischief Posted June 30, 2020 Author Share Posted June 30, 2020 1 minute ago, dmsc said: Have Fun! I am! But more than that, thanks to you, I can MAKE fun! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.