Title: | Atari ST, TT, & Falcon |
Notice: | Please read note 1.0 and its replies before posting! |
Moderator: | FUNYET::ANDERSON |
Created: | Mon Apr 04 1988 |
Last Modified: | Tue May 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 1433 |
Total number of notes: | 10312 |
As a recent 'convert' from the 8-bit Atari to the ST, I am now converting one of my most useful home-grown applications from ATARI BASIC (8-bit) to ST BASIC. There are several differences worth noting but one which came as a surprise. In ST BASIC you can't open the printer as a file and simply 'write' to it. Many systems have the device concept and I'm really surprised that ST BASIC doesn't. The only way I see to put stuff to the printer under program control is to either use the LPRINT command or to stuff bytes using the OUT command. Not very convenient. For others who may attempt such a BASIC-STBASIC conversion: beware of error trapping. As with most MS-like BASICs, the routine that you execute during ON ERROR processing must include a RESUME or else strange things happen in your program. This behavior is rather different than the 8-bit TRAP command. You may want to use the EOF function instead of ON ERROR to branch on end-of-file. If there is any interest, I can post other observations.
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
81.1 | try opening the "file" PRN: | MILRAT::WALLACE | Mon May 09 1988 13:38 | 6 | |
Have you tried using "PRN:" as the device (file) name? I'm not a user of Basic but I'm pretty sure that low level ST bios routines consider the file name of "PRN:" to be the printer. So opening a file of the name "PRN:" will give you access to the printer. Ray | |||||
81.2 | BASIC-outputs to the lineprinter | HAMOP::CHRISTIAN | Tue Oct 17 1989 09:14 | 14 | |
--> opening "file" PRN: <-- I am using the GFA-Basic because it's a micture by Fortran-, Pascal- and Macro-Routine. In GFA-Basic you can use the OPEN-statement with the "filename" PRN:. All further outputs will be directed to the lineprinter when you are using PRINT #n,.... where 'n' is the channel in the open-statement. I hope this notice will help. Chris |