Jump to content
Captain Spazer

Pfheights error

Recommended Posts

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.

Share this post


Link to post
Share on other sites

Now try sticking things from your program into it and see what happens.

  • Thanks 1

Share this post


Link to post
Share on other sites

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.

  • Thanks 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...