Page 1 of 1

Extended Basic

PostPosted: May 9th, 2011, 4:44 pm
by smartgenes
Can anyone tell me what the error is in this line:

13 DISPLAY ERASE ALL :: CALL SCREEN(4):: @=0 :: FOR _=@ TO 14 :: CALL COLOR(_,13,1):: NEXT _ :: CALL LOAD(-31878,0):: CALL LINK("NWCHAR"):: CALL TITLE

It returns a syntax error.
Would much appreciate it! :-)

Re: Extended Basic

PostPosted: May 14th, 2011, 7:55 am
by Ben Yates
I don't see one, unless you did not load the NWCHAR assembly language program via a CALL INIT and a CALL LOAD("DSK1.xxx") (xxx is the filename).

If you don't do a CALL INIT, any CALL LOAD or LINK will return a syntax error.
"DISPLAY ERASE ALL" looks right, but I wonder why not use CALL CLEAR here?

Ben

Re: Extended Basic

PostPosted: July 13th, 2011, 6:29 pm
by Ben Yates
It is Extended BASIC, but it calls an assembly routine (the CALL LINK).
My question was whether the person loaded the assembly routine first. Usually you would see a CALL INIT followed by a CALL LOAD("device.filename") in the program, or you would execute it in command mode before running the program.