Search found 5 matches

by solar penguin
Thu Apr 30, 2020 9:38 am
Forum: ZX BASIC
Topic: XORPLOT and line drawings in BASIC and MCODER II
Replies: 15
Views: 14651

Re: XORPLOT and line drawings in BASIC and MCODER II

You probably worked this out already, but you only need to store one set of values for both SIN and COS because SIN X is COS(90-X) and vice versa. That might save a few bytes.
by solar penguin
Tue Apr 14, 2020 5:21 am
Forum: ZX BASIC
Topic: binary mirroring? in basic
Replies: 6
Views: 10447

Re: binary mirroring? in basic

(* delurks *) Hi, for completeness here's a BASIC binary mirroring routine. I know the OP probably doesn't need this any more, but I enjoyed the challenge. 10 PRINT "INPUT WHOLE NUMBER 0 TO 255" 20 INPUT A 30 IF A<NOT PI OR A>VAL "255" OR A<>INT A THEN RUN 40 PRINT ,,A;" BINARY REVERSED IS" 100 LET ...
by solar penguin
Thu Apr 20, 2017 10:53 am
Forum: Welcome Area
Topic: 10 PRINT "HELLO."
Replies: 5
Views: 3122

Re: 10 PRINT "HELLO."

Thanks everyone! :D
by solar penguin
Wed Apr 19, 2017 8:52 pm
Forum: ZX BASIC
Topic: ZX81 Modulo example.
Replies: 10
Views: 8719

Re: ZX81 Modulo example.

Here is the ZX80 version, as I couldn't find the >= on the keyboard, I had a work-around which you'll see once you load the file. Also, it doesn't handle zero currently. According to the method that I'm employing x/0 is not infinity - it's x remainder infinity - I may add this into V2. Regards, Sha...
by solar penguin
Wed Apr 19, 2017 8:47 pm
Forum: Welcome Area
Topic: 10 PRINT "HELLO."
Replies: 5
Views: 3122

10 PRINT "HELLO."

Hello, another newbie here. I'm from London, in my late 40s, and getting nostalgic about old computers as part of a very geeky mid-life crisis. :geek: My first computer was a ZX81, complete with wobbly rampack. (Later I upgraded to a Spectrum, then an Amstrad PCW. I basically loved anything with a Z...