Jump to content
IGNORED

FastBasic and PRINT #6


Recommended Posts

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:

 

image.thumb.png.f9d498b85c25d7ad418988a66d46f27d.png

 

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!

 

  • Like 1
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...