2011-07-12, 06:38 PM
Hi all
First of all, I'd like to introduce myself. I'm new at this forum but I visit it always I have a doubt about the ZX Basic Compiler.
Now, I'm compiling a large basic program (about 37k) and while the execution in Basic is OK, when I compiled it in a .tzx and try to load it in an emulator, at the end of the load the error B Integer out of range, 30:1 is showed.
The info of the CODE block is 32768,37229 and here is the basic code of the loader:
10 CLEAR 32767
20 LOAD""CODE
30 RANDOMIZE USR 32768
Should I suppose that the program is too big?
Thanks and regards
First of all, I'd like to introduce myself. I'm new at this forum but I visit it always I have a doubt about the ZX Basic Compiler.
Now, I'm compiling a large basic program (about 37k) and while the execution in Basic is OK, when I compiled it in a .tzx and try to load it in an emulator, at the end of the load the error B Integer out of range, 30:1 is showed.
The info of the CODE block is 32768,37229 and here is the basic code of the loader:
10 CLEAR 32767
20 LOAD""CODE
30 RANDOMIZE USR 32768
Should I suppose that the program is too big?
Thanks and regards


I'm using the last version (1.2.8 ) Now, I'm trying to reduce the code defining uByte variables and arrays but it seems I don't know the syntax because I'm getting the error Syntax Error. Unexpected token 'AS' <AS>. I'm trying to it in several ways do:
Declaring vars and arrays as uByte and compiling with the --org and --heap-size did the trick. Now I'm polishing a bit the BASIC code and I hope to release it in a day or two.
ahem... so more people might want to try it).