Search found 474 matches

by Shaun_B
Sat Jan 05, 2019 11:59 am
Forum: ZX BASIC
Topic: 1k bouncing ball
Replies: 5
Views: 4927

1k bouncing ball

Here's a 1k bouncing ball demo using some useful memory saving techniques. 2 SAVE "B" 3 CLS 4 PLOT X,Y 5 LET X=X+A 6 LET Y=Y+B 7 IF Y>=CODE "F" OR NOT Y THEN LET B=-B 8 IF X>=CODE "Z" OR NOT X THEN LET A=-A 9 GOTO PI In direct mode, enter LET X=NOT PI LET Y=X LET A=NOT X LET B=NOT Y GOTO 2 Regards, ...
by Shaun_B
Thu Jan 03, 2019 8:37 pm
Forum: ZX BASIC
Topic: Happy New Year MMXIX
Replies: 1
Views: 2212

Happy New Year MMXIX

Hi,

Here's a little scrolly to wish you all a Happy New Year. This version is programmed with the fantastic ZX81x2 ROM to show the improvements with the PAUSE command.

Regards,

Shaun.
by Shaun_B
Thu Jan 03, 2019 2:24 pm
Forum: Software
Topic: 2k adventure
Replies: 26
Views: 14262

Re: 2k adventure

1 LET R=PI/PI 5 LET L=NOT R 10 LET Q=NOT PI/PI 20 PRINT ,,("YOU ARE IN A CAVE." AND R=1);(" IN THE CAVE IS A LAMP" AND NOT L AND R=1);(" LAMP TAKEN, YOU CAN NOW SEE FURTHER." AND L=1 AND R=1);(" THE CAVE IS NOW BRIGHT AND YOU CAN SEE THE TREASURE I THE DISTANCE" AND L=1 AND R=1);("TRAP SPRUNG. YOU ...
by Shaun_B
Thu Jan 03, 2019 10:24 am
Forum: Software
Topic: TODOS - a to do list generator for the ZX81
Replies: 0
Views: 2998

TODOS - a to do list generator for the ZX81

J. D. Smith entered a to do list generator for the 2018 Crap Games Competition, it's available here:

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

Regards,

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

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: 34
Views: 20217

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: 34
Views: 20217

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: 34
Views: 20217

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: 3504

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: 34
Views: 20217

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...