CPCWiki forum

General Category => Programming => Topic started by: HAL6128 on 23:39, 04 February 12

Title: Basic command "sub" ??
Post by: HAL6128 on 23:39, 04 February 12
Just a quick question:

There a BASIC command called "SUB" at the Wiki page "Locomotive BASIC Interpreter command list".

http://cpcwiki.eu/index.php/Locomotive_BASIC#SUB (http://cpcwiki.eu/index.php/Locomotive_BASIC#SUB)
http://cpcwiki.eu/index.php/Locomotive_BASIC (http://cpcwiki.eu/index.php/Locomotive_BASIC)
There no content.

Does this command really exist?
Title: Re: Basic command "sub" ??
Post by: Bryce on 10:27, 05 February 12
Well it's not mentioned in either the 464 or 6128 manual, so it must be a mistake. Or is it an undocumented secret command? :D

Bryce.
Title: Re: Basic command "sub" ??
Post by: almasys on 12:08, 05 February 12
Locomotive BASIC prompts this command with Syntax Error, as other unknown commands. So I removed it from the page.

Pretty restweekend,
AMSi
Title: Re: Basic command "sub" ??
Post by: Devilmarkus on 21:21, 05 February 12
You can enter GO SUB instead of GOSUB
Same works with GO TO instead of GOTO

So perhaps it was used while CPC Basic has been developed?
Title: Re: Basic command "sub" ??
Post by: TFM on 02:47, 06 February 12
Quote from: hal 6128 on 23:39, 04 February 12
Does this command really exist?

No.
Title: Re: Basic command "sub" ??
Post by: HAL6128 on 07:59, 06 February 12
Quote from: Devilmarkus on 21:21, 05 February 12
You can enter GO SUB instead of GOSUB
Same works with GO TO instead of GOTO

So perhaps it was used while CPC Basic has been developed?
...interesting. I tried that

10 go [SPACE] sub
20 go [SPACE] to
LIST

leads to

10 GOSUB
20 GOTO

There must some internal converting process during interpreting used. But the command themself doesn't exist.
Thanks for your answers.
Title: Re: Basic command "sub" ??
Post by: TFM on 22:04, 06 February 12
Right, Amstrad BASIC is partially precompiled (using tokens), therefore it's so quick (compared to M$ basic or c64).
Powered by SMFPacks Menu Editor Mod