gHan2000 Posted February 12, 2011 Share Posted February 12, 2011 (edited) 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 February 12, 2011 by gHan2000 Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted February 12, 2011 Share Posted February 12, 2011 Where are your labels called "jump" and "sprites"? 1 Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted February 12, 2011 Share Posted February 12, 2011 Edit: The forums stole my indents, so there's no proof that I know that I know I'm supposed to indent. Its much easier for other people to debug your code if you attach it to your post. 1 Quote Link to comment Share on other sites More sharing options...
diogoandrei Posted February 12, 2011 Share Posted February 12, 2011 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 1 Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted February 12, 2011 Share Posted February 12, 2011 Related link: How to Attach a File at AtariAge 1 Quote Link to comment Share on other sites More sharing options...
gHan2000 Posted February 13, 2011 Author Share Posted February 13, 2011 Where are your labels called "jump" and "sprites"? 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. Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted February 13, 2011 Share Posted February 13, 2011 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. Quote Link to comment Share on other sites More sharing options...
yuppicide Posted February 13, 2011 Share Posted February 13, 2011 Learn to post in the right forum. 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.