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

Re: running .system files from BASIC



Don Bruder (dakidd@sonic.net) wrote:
: > : There were a couple special cases that I can't recall right now (mostly 
: > : involving unexpected ways the parser saw things) that made it a really 
: > : good idea to use the semicolon between items in a print list, but aside 
: > : from the "gotcha" cases, I'm pretty sure it's optional.
: > 
: > I've never seen problems like that with this form of print statement.  But
: > I have seen oddball problems when the parser would do exactly as I told it
: > instead of what I wanted it to do.  Consider this:
: > 
: > nnn IF B = A THEN 40
: > 
: > ...will result in a ?SYNTAX ERROR while...
: > 
: > nno IF A = B THEN 40 
: > 
: > ...will work fine.  Reading the listing reveals all:
: > 
: > LIST nnn-nno
: > nnn IF B = AT HEN 40
: > nno IF A = B THEN 40

: Right. That's a picture-perfect example of the "unexpected way the 
: parser saw things" I was referring to. seems to me there's another one 
: that can "bite" when there's an equals sign, too - The variable name 
: plus the equals sign, plus the text *BEFORE* the variable name get 
: mashed together internally, and the machine thinks you typed a reserved 
: word. I can't recall the precise details of what the preceeding text 
: needs to be, and which variable it is, but it's one of the known 
: parser-gotchas. 

Well, I don't remember it, but since I have this Applesoft manual handy,
here's a partial list of reserved words...

These include an "=":

COLOR=
HCOLOR=
ROT=
SCALE=
SPEED=


These include other symbols:
CHR$
HIMEM:
HGR2
IN#
LEFT$
LOMEM:
MID$
PR#
RIGHT$
SCRN(
SPC(
STR$
TAB(

Two others that I think might be incorrectly printed...the book shows USR
and PDL; I thought sure those would be USR( and PDL(, respectively. 
Again, I'd have to fire up Applesoft to know for certain, and my Apples
are all at home...

--Dave Althoff, ][.
-- 
    /X\        _       _               *** Closed for the season. ***
   /XXX\      /X\     /X\_      _     /X\__      _     _        _____
  /XXXXX\    /XXX\  _/XXXX\_   /X\   /XXXXX\    /X\   /X\      /XXXXX
_/XXXXXXX\__/XXXXX\/XXXXXXXX\_/XXX\_/XXXXXXX\__/XXX\_/XXX\_/\_/XXXXXX