Search found 440 matches

by Shaun_B
Wed Dec 12, 2018 10:52 pm
Forum: ZX BASIC
Topic: ZX Basic vs Commodore V2.00 (Vic 20)
Replies: 24
Views: 998

Re: ZX Basic vs Commodore V2.00 (Vic 20)

Not sure what you're driving at but no GOSUB or GOTO is required when defining a function within a string or its later evaluation. IE.. 10 INPUT A 20 INPUT B 30 INPUT X 40 LET Z$="A*B/SIN X" 50 PRINT VAL Z$ Functioned defined within Z$ and evaluated in line 50 using the variables previously input a...
by Shaun_B
Wed Dec 12, 2018 9:09 pm
Forum: ZX BASIC
Topic: ZX Basic vs Commodore V2.00 (Vic 20)
Replies: 24
Views: 998

Re: ZX Basic vs Commodore V2.00 (Vic 20)

Yes Sinclair Basic is more dynamic here. E.g. GOTO VARNAME works fine in Sinclair Basic, but gives an error in Commodore Basic, where GOTO and GOSUB can only be followed by a number. A quirk of Microsoft (Commodore) BASIC is that you can do this: 100 GOSUB 1000 UPDATE SCORE:PRINT S 999 END 1000 S=S...
by Shaun_B
Wed Dec 12, 2018 9:03 pm
Forum: ZX BASIC
Topic: ZX Basic vs Commodore V2.00 (Vic 20)
Replies: 24
Views: 998

Re: ZX Basic vs Commodore V2.00 (Vic 20)

Moggy wrote:
Mon Dec 10, 2018 4:09 pm
Mathematical functions simple and complex can be defined within a string in zx81 basic and the evaluation of said function, after whatever values needed are entered, can be called by simply asking the strings value.
That would require a GOSUB or GOTO.

Regards,

Shaun.
by Shaun_B
Mon Dec 10, 2018 9:30 am
Forum: ZX BASIC
Topic: ZX Basic vs Commodore V2.00 (Vic 20)
Replies: 24
Views: 998

Re: ZX Basic vs Commodore V2.00 (Vic 20)

verbose how? More commands, may use GOTO and GO TO and data handling can handle strings without quotation marks in some cases. There are 71 commands. Also allows to define simple mathematical functions to be defined and called anywhere. I am of course comparing ZX80/81 BASIC to BASIC V2 as describe...
by Shaun_B
Tue Nov 27, 2018 11:14 pm
Forum: GAMES
Topic: Labyrom
Replies: 3
Views: 288

Re: Labyrom

I like it!
by Shaun_B
Thu Nov 22, 2018 10:00 pm
Forum: ZX BASIC
Topic: ZX Basic vs Commodore V2.00 (Vic 20)
Replies: 24
Views: 998

Re: ZX Basic vs Commodore V2.00 (Vic 20)

Also something else considered bad practise - same line comments ;-) Regards, Shaun. same line comments? Yes, like this: 10 PRINT "Hello ";: GO TO 10: REM This is an inline comment It's kind of considered common practise in assembly, but not so in high-level languages. But then who cares about codi...
by Shaun_B
Sun Nov 18, 2018 10:01 pm
Forum: ZX BASIC
Topic: ZX Basic vs Commodore V2.00 (Vic 20)
Replies: 24
Views: 998

Re: ZX Basic vs Commodore V2.00 (Vic 20)

Also something else considered bad practise - same line comments ;-)

Regards,

Shaun.
by Shaun_B
Sun Nov 18, 2018 7:43 pm
Forum: ZX BASIC
Topic: ZX Basic vs Commodore V2.00 (Vic 20)
Replies: 24
Views: 998

Re: ZX Basic vs Commodore V2.00 (Vic 20)

For me, the most annoying limitation of the ZX80 and ZX81 BASICs is no multi-statement lines :( This is the apparent annoyance with ZX Spectrum BASIC (and all other variants except for ZX80/81 BASIC) because multi-statemented BASIC lines might make it more difficult to debug. As this is primarily a...
by Shaun_B
Sun Nov 18, 2018 2:24 pm
Forum: Sinclair Misc
Topic: Carp* Gaming Competition
Replies: 3
Views: 563

Re: Carp* Gaming Competition

We've had our first ZX81 entry:

https://cgc.source.run/entries.html#todos

Wibble!
by Shaun_B
Sun Nov 18, 2018 11:51 am
Forum: ZX BASIC
Topic: ZX Basic vs Commodore V2.00 (Vic 20)
Replies: 24
Views: 998

Re: ZX Basic vs Commodore V2.00 (Vic 20)

Hi Dr Beep,

I though the comparison was for ZX81 BASIC against VIC-20 BASIC. If not, then one may also define mathematical functions in ZX Spectrum BASIC, but more complex than those on BASIC v2.

Regards,

Shaun.