12-20-2024, 08:28 AM
csk Wrote:zarsoft Wrote:Most likely, the error is due to an illegal character or an extra or missing character.
Check the lines you've added lately.
It's a bad idea to have the sprites in DATA lines.
Sometimes it is necessary to save bytes.
Classic method:
- In an emulator, place the DATA lines, generate the UDG, and SAVE "sprites" USR "A", 96*8
Direct method:
- Place the sprites in an image editor and generate the TAP with the sprites at the URL
https://arcalusitana.org/MuseuZX/ZXspritesUDG
Then, you can LOAD the sprites directly to the USR "A" address.
Example: Memory
Holy moly, thank you!!! Exactly that was the problem, I "misspelled" two DATA items! What puzzled me was that the error messages were referring to the ATTR module rather than my program (as they always did up to this moment whenever I wrote something wrong). Thanks for the sprite saving tips, too! I am a kind of newbie, IĀ used to use BASIC extensively as a kid back in the 80's, but never wrote anything involving sprites due to BASIC being too slow. Now at almost 50, nostalgia found me and tried it with the modern tools like Boriel ZX Basic
I'm improving Boriel ZX Basic error reporting.
Syntax errors like these are a bit difficult to improve. Will keep you posted.
If you can post a minimal bas listing, it will save me precious time.
---
Boriel
Boriel