Jump to content
IGNORED

MORE GLITCHES!


gHan2000

Recommended Posts

I am trying to compile my first program and I am getting this error message:

-----Unresolved Symbol List

0.jump

0.sprites

Fatal assembly error: Source is not resolvable.

My code is:

playfield:

................................

................................

................................

................................

................................

................................

................................

................................

................................

................................

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

end

 

COLUBK = $20

COLUPF = 212

 

player0x=50 : player0y=50

player1x=20 : player1y=20

 

player0:

%01111110

%01000010

%01000010

%01111110

100000

%01110000

100000

%01010000

end

 

player1:

%11111111

%10000001

%10000001

%10000001

%10000001

%10000001

%10000001

%11111111

end

 

if joy0up then player0y = player0y-1: goto jump

if joy0down then player0y = player0y+1: goto jump

if joy0left then player0x = player0x-1: goto jump

if joy0right then player0x = player0x+1: goto jump

 

draw_loop

drawscreen

goto sprites

 

Edit: The forums stole my indents, so there's no proof that I know that I know I'm supposed to indent.

Edited by gHan2000
Link to comment
Share on other sites

Edit: The forums stole my indents, so there's no proof that I know that I know I'm supposed to indent.

 

Each much easier for other people to debug your code if you attach it to your post.

 

Right on. If you attach your files someone can debug it much faster and you don't have to paste the whole code in your post. By the way, for moments when you do want to paste your code there's a tool called "Insert code snippet". It's on the assets bar and it looks like <>.

 

I would also suggest the following:

 

1. use the batari Basic sub-forum for programming issues related to bB;

2. a more explanatory/informative topic title can speed up things for you and also make future searches by other users easier :thumbsup:

  • Like 1
Link to comment
Share on other sites

I don't know anything about the jump label and when I put sprites in, the compiler didn't like it, so I took it out.

 

You are using "goto jump" in your code so what happened to the block of code that started at the "jump" label? The assembler is telling you that you have made references to two labels that it can't find.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...