Author Topic: Basic command "sub" ??  (Read 1490 times)

0 Members and 1 Guest are viewing this topic.

Offline HAL 6128

  • 6128 Plus
  • ******
  • Posts: 523
  • Country: de
    • index.php?action=treasury
  • Liked: 260
  • Likes Given: 1406
Basic command "sub" ??
« on: 00:39, 05 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
There no content.
 
Does this command really exist?
...proudly supported Schnapps Demo, Pentomino and NQ-Music-Disc with GFX

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 12.069
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 4419
  • Likes Given: 465
Re: Basic command "sub" ??
« Reply #1 on: 11: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.

Offline almasys

  • CPC464
  • **
  • Posts: 13
  • Liked: 6
  • Likes Given: 0
Re: Basic command "sub" ??
« Reply #2 on: 13: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
« Last Edit: 14:10, 05 February 12 by almasys »

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1017
  • Likes Given: 926
Re: Basic command "sub" ??
« Reply #3 on: 22: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?
« Last Edit: 22:23, 05 February 12 by Devilmarkus »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1983
  • Likes Given: 4650
Re: Basic command "sub" ??
« Reply #4 on: 03:47, 06 February 12 »
Does this command really exist?

No.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline HAL 6128

  • 6128 Plus
  • ******
  • Posts: 523
  • Country: de
    • index.php?action=treasury
  • Liked: 260
  • Likes Given: 1406
Re: Basic command "sub" ??
« Reply #5 on: 08:59, 06 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.
 
...proudly supported Schnapps Demo, Pentomino and NQ-Music-Disc with GFX

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1983
  • Likes Given: 4650
Re: Basic command "sub" ??
« Reply #6 on: 23:04, 06 February 12 »
Right, Amstrad BASIC is partially precompiled (using tokens), therefore it's so quick (compared to M$ basic or c64).
 
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus