[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Platform for BASIC?



Phoenyx writes ...
> 
> After playing with it a bit, I found one command that I know is
> wrong. The fill command should be FILL WITH #value. So in the
> prior list, just combine the FILL and the WITH which follows it.
> 
> Some of the commands are curious. For instance, turn on graphics
> with the GRAPHMODE command, by default this turns on lores
> graphics. Use HIRES to switch to the hires screen. By default, the
> screen is not cleared.
 ....

> Another note, I tested this on a GS. When inputting as lowercase,
> the parser got confused. To avoid this, just use the capslock
> key.
> 
> 5 REM -={ LINES 10 - 20 SETUP SCREEN 0 AND SHOW IT  }=-
> 6 REM -={ LINE 25 PAUSES                            }=-
> 7 REM -={ LINE 30 - 50 DRAW ON SECONDARY SCREEN     }=-
> 8 REM -={ AND COPY IT TO THE MAIN (VIEW) SCREEN     }=-
> 9 REM -={ PAUSE THEN SUPERIMPOSE AND PAUSE AND EXIT }=-
> 10 HIRES :  SCREEN 0 : FILL WITH 0
> 20 GRAPHMODE
> 25 GET A$
> 30 SCREEN 1: FILL WITH 0
> 40 HCOLOR= 3 : HPLOT 0,0 TO 100,100
> 45 GET A$
> 50 SUPERIMPOSE
> 60 GET A$
> 70 TEXTMODE : END
> 
 ....

     Tried out the above on our IIgs with STRUCTURED BASIC downloaded from
USA2WUG, kind of neat!

     One weirdness is that, after starting SBASIC, EXECing the Text file copy
of your program does not produce a correctly parsed SBASIC program. For
example, the SUPERIMPOSE command in Line 50 becomes

50 SUPERIM POS E

and the TEXTMODE command in Line 70 becomes

70 TEXT MODE


     Evidently EXEC gets handled by Applesoft with no adjustments to
recognize SBASIC commands. There was no problem with SAVEing and LOADing
programs.



Rubywand