Captain Spazer Posted January 16, 2021 Share Posted January 16, 2021 I am not sure what I am doing wrong but when I try using pfheights 2600basic.exe stops working. The error message says: Quote Warning: Unable to open '2600basic_variable_redefs.h' Warning: Unable to open '2600basic_variable_redefs.h' C:\2600 Projects\Karate\default.bas.asm (1226): error: Syntax Error ''. Unrecoverable error(s) in pass, aborting assembly! Complete. Errors were encountered during assembly. In the code I got set romsize 8k set kernel_options player1colors playercolors pfcolors pfheights background main pfheights: 8 8 8 8 8 8 8 8 8 8 8 end pfcolors: $f5 $f5 $f5 $26 $1A $1A $1A $1A $26 $00 $00 $00 end drawscreen goto main Is the error as simple as I don't got enough space left in bank1? I have 186 bytes left in bank1 and 1251 bytes left in bank2. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted January 16, 2021 Share Posted January 16, 2021 Try compiling this example program to make sure things are working correctly: randomterrain.com/atari-2600-memories-batari-basic-commands.html#ex_shoot_pfpixel Quote Link to comment Share on other sites More sharing options...
Captain Spazer Posted January 16, 2021 Author Share Posted January 16, 2021 It compiles just fine. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted January 16, 2021 Share Posted January 16, 2021 Now try sticking things from your program into it and see what happens. 1 Quote Link to comment Share on other sites More sharing options...
Captain Spazer Posted January 16, 2021 Author Share Posted January 16, 2021 Ah, clever approach! Thank you, now I can debug this thing ? Quote Link to comment Share on other sites More sharing options...
+Karl G Posted January 16, 2021 Share Posted January 16, 2021 Another debug trick is to look at the generated assembly file. Even if you don't know assembly, you can open it up and look at the line number it gives. Usually above the line of assembly you will see the bB code that it converted into assembly, and can sometimes figure out what is wrong with that line to have generated the assembly error. In your case, that would be line 1226 in default.bas.asm. 2 Quote Link to comment Share on other sites More sharing options...
Captain Spazer Posted January 16, 2021 Author Share Posted January 16, 2021 Thank you! That is very helpful to know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.