Search found 19 matches

by zarsoft
Mon Jun 03, 2024 5:01 pm
Forum: Spectrum BASIC
Topic: Is there a way to convert an PNG or Jpeg into data statements?
Replies: 12
Views: 742

Re: Is there a way to convert an PNG or Jpeg into data statements?

dr beep wrote: Mon Jun 03, 2024 4:19 pm See my game BOUNCING DOTS. In stead of a ball draw a line and I am ready.

I hope so.

Nice game.
Remind me of STRON.
https://arcalusitana.org/MuseuZX/index. ... rsoft].tap
by zarsoft
Mon Jun 03, 2024 3:54 pm
Forum: Spectrum BASIC
Topic: Is there a way to convert an PNG or Jpeg into data statements?
Replies: 12
Views: 742

Re: Is there a way to convert an PNG or Jpeg into data statements?

That I can make. I will be waiting. Here is a test in BASIC: VAR X1, Y1, X2, Y2 TYPE BYTE VAR PLOTX,PLOTY,X,Y TYPE BYTE VAR INC,DX,DY TYPE BYTE VAR I TYPE BYTE LET X1=PEEK 16438 : REM COORDS LET Y1=PEEK 16439 : REM LAST PIXEL PLOTTED LET X2=PEEK 16514 LET Y2=PEEK 16515 LET PLOTX=X1 LET PLOTY=Y1 REM...
by zarsoft
Mon Jun 03, 2024 1:40 pm
Forum: Spectrum BASIC
Topic: Is there a way to convert an PNG or Jpeg into data statements?
Replies: 12
Views: 742

Re: Is there a way to convert an PNG or Jpeg into data statements?

It's easy to write a LINE routine to invoke from BASIC.
Line from COORDS (16438) to PEEK 16514, PEEK 16515.
RAND USR 16516.
You can call the ROM routine at 0BB2 to PLOT each point.
You can get inspired here:
https://skoolkid.github.io/rom/asm/24B7.html
by zarsoft
Mon Jun 03, 2024 11:17 am
Forum: Spectrum BASIC
Topic: Is there a way to convert an PNG or Jpeg into data statements?
Replies: 12
Views: 742

Re: Is there a way to convert an PNG or Jpeg into data statements?

dr beep wrote: Mon Jun 03, 2024 11:03 am The ultimate 1K coding book


Does this book includes a LINE routine?
by zarsoft
Mon Jun 03, 2024 10:46 am
Forum: Spectrum BASIC
Topic: Is there a way to convert an PNG or Jpeg into data statements?
Replies: 12
Views: 742

Re: Is there a way to convert an PNG or Jpeg into data statements?

dr beep wrote: Sat Jun 01, 2024 12:34 pm I detect someone is taking pictures of the game in my book and so "typing in" the game.
Which book?
by zarsoft
Sat Jun 01, 2024 11:43 am
Forum: Spectrum BASIC
Topic: Is there a way to convert an PNG or Jpeg into data statements?
Replies: 12
Views: 742

Re: Is there a way to convert an PNG or Jpeg into data statements?

This app converts image to TAP:
https://arcalusitana.org/MuseuZX/ZXspritesBlock

On that site, there is another app who generates DATA statements but the image comes out splited into blocks 8x8.

But, if you want to generate a SCREEN then it is better bmp2scr or SevenUp, etc.
by zarsoft
Thu May 30, 2024 4:48 pm
Forum: Software
Topic: Pascal for ZX81
Replies: 72
Views: 22726

Re: Pascal for ZX81

by zarsoft
Thu May 30, 2024 12:47 am
Forum: Emulators
Topic: EightyOne variable bug (the fix is on the mail but it not arrived yet)
Replies: 3
Views: 310

Re: EightyOne variable bug

stroebeljc wrote: Wed May 29, 2024 10:45 pm A fix has been implemented and should appear in the next release.

Can I get that fix now?
( For testing purposes, eh, eh... :) )

On the ZX BASIC compiler (Boriel) we can get the fix before the official release...
by zarsoft
Wed May 29, 2024 7:50 pm
Forum: Spectrum BASIC
Topic: Help me, mommy! My ZX81 doesn't have the GOTO command!
Replies: 0
Views: 175

Help me, mommy! My ZX81 doesn't have the GOTO command!

https://arcalusitana.org/MuseuZX/Pascalated_ZX81/image/GOTO_forbidden.png Don't worry, the GOTO command is not necessary. You can write programs in Pascalated BASIC. See the announcement here: https://planetasinclair.blogspot.com/2024/05/basic-apascalado-no-seu-zx81.html?sc=1717003235751#c759216292...
by zarsoft
Wed May 29, 2024 4:51 pm
Forum: Emulators
Topic: EightyOne variable bug (the fix is on the mail but it not arrived yet)
Replies: 3
Views: 310

EightyOne variable bug (the fix is on the mail but it not arrived yet)

HELP! Please fix this bug on EightyOne 1.40: When I load this BAS file 10 LET X1=1 20 LET X12=12 30 PRINT X1 40 PRINT X12 and RUN the program then I got this error: Invalid expression in line 20. To solve this I must do EDIT ENTER on this line. But I have many lines like this and I dont want to do E...