Jump to content
Sign in to follow this  
yllawwally

Can't compile sample game

Recommended Posts

I just installed visual batari basic. I load up the zombie sample. I cannot get the sample game to work. What did I setup incorrectly. When I compile I get the following

 

 

Compile started at 10/3/2012 10:52:38 AM

Compiling C:\ATARI\bB\PROJECTS\Zombie_Chase\DEFAULT.BAS

bytes of ROM space left

91 bytes of ROM space left

91 bytes of ROM space left

91 bytes of ROM space left

--- Unresolved Symbol List

pfcenter 0000 ???? (R )

mul8 0000 ???? (R )

kernelmacrodef 0000 ???? (R )

pfhalfwidth 0000 ???? (R )

 

Fatal assembly error: Source is not resolvable.

Errors were encountered during assembly.

2600 Basic compilation completed.

Compilation completed at 10/3/2012 10:52:39 AM

view output file:///C:/ATARI/bB/PROJECTS/Zombie_Chase/bin

Post compilation files deleted

Share this post


Link to post
Share on other sites

Sometimes if one label wasn't found you end up getting a bunch of unresolved symbols instead of just the one. In this case I'm guessing that "mul8" is the culprit, because it's a routine found in the "div_mul.asm" include file, which is *not* included unless you tell bB to include it. Try adding the following line at the beginning of the program and compiling again:

 

  include div_mul.asm

Share this post


Link to post
Share on other sites

Thanks that fixed it. It had an include fixed math statement, but not div_mul. I just assumed the sample would be correct, and I has messed something up in the installation.

Share this post


Link to post
Share on other sites

Thanks that fixed it. It had an include fixed math statement, but not div_mul. I just assumed the sample would be correct, and I has messed something up in the installation.

 

It worked when it was first written, but later there was a bug introduced into bB in which multiplication or division by certain powers-of-two don't use bit shifting like they should, but instead use these general functions.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...