It is currently Sun Jan 20, 2019 11:50 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Dec 27, 2018 1:22 pm 
Offline
User avatar

Joined: Thu Dec 27, 2018 11:22 am
Posts: 2
Location: The last place you look
My code:
Code:
lda #LOW(Pal1)
sta PalPointerLow
lda #HIGH(Pal1)
sta PalPointerHigh
jsr loadpal

Its supposed to store the adress of "Pal1" into 2 bytes, who are going to get used in the next subroutine, but results in a error when assembled "Undefined symbol in operand field!"

What am i missing?

Thanks in advance!


Top
 Profile  
 
PostPosted: Thu Dec 27, 2018 1:33 pm 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2390
Location: DIGDUG
Is pal1 a label or a constant?

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Thu Dec 27, 2018 1:36 pm 
Offline
User avatar

Joined: Thu Dec 27, 2018 11:22 am
Posts: 2
Location: The last place you look
Thanks for the help!

Turned out (the label) Pal1 didn't exist.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group