Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling errors
#6
Don't use fixed positions like 65367 in the listing above. Even for original Sinclair BASIC listings this is not recommended.
Instead use USR "a" (to start at UDG "a" position).
NOTE: "a" can be the letter "a", the letter "A" or the UDG "A".

This automatically resolves to the right position of the UDGs in memory.

In your case, you're trying to poke starting from 65367 which is one position less than UDG "a". You might be corrupting something (even in the original Sinclair BASIC program!). Do this instead:

Code:
FOR a = USR "a" TO USR "u" + 7:
READ b: POKEa, b
NEXT a
...

This should work in both Sinclair BASIC and ZX Basic compiled with --sinclair.
If you don't use --sinclair, an extra step is still needed.

How are you compiling the program?
Reply


Messages In This Thread
Compiling errors - by Jodo - 07-13-2020, 02:14 PM
RE: Compiling errors - by boriel - 07-14-2020, 10:19 PM
RE: Compiling errors - by Jodo - 07-14-2020, 10:40 PM
RE: Compiling errors - by boriel - 07-15-2020, 07:26 AM
RE: Compiling errors - by Jodo - 07-18-2020, 01:25 PM
RE: Compiling errors - by boriel - 07-18-2020, 04:47 PM
RE: Compiling errors - by Jodo - 07-18-2020, 06:51 PM
RE: Compiling errors - by boriel - 07-19-2020, 11:38 AM
RE: Compiling errors - by Jodo - 07-19-2020, 01:50 PM
RE: Compiling errors - by boriel - 07-19-2020, 03:37 PM
RE: Compiling errors - by Jodo - 07-19-2020, 06:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)