ZX Basic vs Commodore V2.00 (Vic 20)
Posted: Sat Nov 17, 2018 11:51 pm
any differences that stand out to you? drawbacks?
Discussion forums for users of the Sinclair 8-bit range of computers - ZX80, ZX81, ZX Spectrum, Z88, clones...
https://sinclairzxworld.com/
Code: Select all
LET A%=100
Code: Select all
DIM A%(255): A(0)=-128: A(1)=128
Code: Select all
DIM A(255): ...
Code: Select all
0 FOR I=0 TO 10: A(I) = INT(RND(0)*16): NEXT I
Code: Select all
0 FOR I=0 TO 3
1 READ A$(I)
2 NEXT
3 READ A,B
999 DATA "HELLO", "SAILOR", "WIBBLE", "FIN", 128, 256
Code: Select all
0 INPUT "HELLO ";A$
1 PRINT "HI, ";A$
Code: Select all
0 DEF FN A(X)=X*X
1 PRINT FN A(9)
Shaun_B wrote: You may use the INPUT command on BASIC v2 with a text prompt, like this:
Also allowed on the ZX SpectrumCode: Select all
0 INPUT "HELLO ";A$ 1 PRINT "HI, ";A$
Regards,
Shaun.
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.