Search found 393 matches

by Shaun_B
Sat Feb 10, 2018 2:09 pm
Forum: ZX BASIC
Topic: Number Guesser by Donkeysoft
Replies: 0
Views: 110

Number Guesser by Donkeysoft

Here's Number Guesser for the 1K Sinclair ZX81 (and ZX80 with a new ROM).

It was written to demonstrate what might be achieved in just 12 lines of ZX81 BASIC.

Enjoy,

Shaun.
by Shaun_B
Sat Feb 10, 2018 12:46 pm
Forum: Sinclair Misc
Topic: Carp* Gaming Competition
Replies: 2
Views: 128

Re: Carp* Gaming Competition

I was going for a soft-launch but I got an entry from Kweepa and he wanted it out as quickly as possible. I updated the site last night, mostly because I couldn't sleep but also because Kweepa's release is a bit time-sensitive. To keep up-to-date with the competition, see here and here . I'm awaitin...
by Shaun_B
Thu Feb 08, 2018 8:38 pm
Forum: Sinclair Misc
Topic: Carp* Gaming Competition
Replies: 2
Views: 128

Re: Carp* Gaming Competition

I've update the rules for the competition:

https://groups.google.com/forum/#!topic ... YSl8wanfg4

Site will launch soon :-)

Shaun.
by Shaun_B
Thu Feb 08, 2018 8:33 pm
Forum: Development
Topic: Boing boing!
Replies: 16
Views: 8697

Re: Boing boing!

As requested, here is a snippet of the moveBall() function from Bounce Redux: char directionX, directionY; unsigned char x, y; unsigned char lastX, lastY; unsigned char angleX; unsigned char ballDirection; /** * Resets level variables * * @author sbebbington * @date 07 Jan 2018 * @version 1.0 */ voi...
by Shaun_B
Thu Feb 08, 2018 8:23 pm
Forum: Development
Topic: Super ZX80
Replies: 4
Views: 230

Re: Super ZX80

Cool - I might buy another Minstrel clone to experiment. Super ZX80 sounds good to me :-)

Regards,

Shaun.
by Shaun_B
Tue Feb 06, 2018 9:37 pm
Forum: Sinclair Misc
Topic: Carp* Gaming Competition
Replies: 2
Views: 128

Carp* Gaming Competition

Hi,

I thought that I'd get the ball rolling for a 2018 Carp* Gaming Competition - here's the announcement:

https://groups.google.com/forum/#!topic ... m7PfF0IC30

Regards,

Shaun.

* Mis-print.
by Shaun_B
Thu Feb 01, 2018 8:46 am
Forum: Development
Topic: Plot function in z88dk
Replies: 28
Views: 900

Re: Plot function in Z88DK

Thanks Andy, the speed is impressive! I may seem entirely hopeless, but can anyone please assist me in wrapping this ASM code into a C function? I know that you need to put the ASM code between #asm and #endasm, but everything else regarding ASM in z88dk is currently trial and error for me. I Rober...
by Shaun_B
Sun Jan 28, 2018 6:07 pm
Forum: ZX BASIC
Topic: ZX80 4K ROM string length
Replies: 1
Views: 109

Re: ZX80 4K ROM string length

You can add to the routine above a string reverse routine as follows: 600 REM GNIRTS ESREVER 610 LET R=0 620 IF R=L THEN RETURN 630 LET R=L 640 IF R<0 THEN RETURN 650 FOR I=0 TO R 660 LET B$=TL$(B$) 670 NEXT I 680 PRINT CHR$(CODE(B$)); 690 LET R=R-1 700 LET B$=R$ 710 GO TO 640 Adding to the string l...
by Shaun_B
Sun Jan 28, 2018 5:09 pm
Forum: ZX BASIC
Topic: ZX80 4K ROM string length
Replies: 1
Views: 109

ZX80 4K ROM string length

Here's a sub routine that will count the length of a string (including example). 10 LET A$="HOW LONG IS A PIECE OF STRING?" 20 LET B$=A$ 30 GOSUB 500 40 PRINT "LENGTH IS ";L 100 STOP 500 REM STRING LENGTH 510 LET L=0 520 IF B$="" THEN GO TO 560 530 LET L=L+1 540 LET B$=TL$(B$) 550 GO TO 520 560 RETU...