It is currently Fri Oct 19, 2018 5:49 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: ASM6 Help
PostPosted: Sat Oct 13, 2018 2:22 pm 
Offline

Joined: Tue Oct 09, 2018 8:31 am
Posts: 8
I'm working with ASM6, and have set it up correctly, but when I try to load my code all of the labels and Jumps are replaced with 'Unknown label.' and 'Can't determine address.' respectively. Does anyone know what's happening here?


Top
 Profile  
 
 Post subject: Re: ASM6 Help
PostPosted: Sat Oct 13, 2018 2:23 pm 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 4093
Did you include an .org somewhere?

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
 Post subject: Re: ASM6 Help
PostPosted: Sat Oct 13, 2018 2:24 pm 
Offline

Joined: Tue Oct 09, 2018 8:31 am
Posts: 8
No, that's probably the problem then. Where should I make one, and what should I put in it?
Edit: We are talking about a .org file, right?


Top
 Profile  
 
 Post subject: Re: ASM6 Help
PostPosted: Sat Oct 13, 2018 2:27 pm 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 4093
I'm talking about an origin address. .org is an assembler directive that defines what the current address is.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
 Post subject: Re: ASM6 Help
PostPosted: Sat Oct 13, 2018 2:28 pm 
Offline

Joined: Tue Oct 09, 2018 8:31 am
Posts: 8
where do I put it then?


Top
 Profile  
 
 Post subject: Re: ASM6 Help
PostPosted: Sat Oct 13, 2018 2:32 pm 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 4093
;NES Header

.db "NES",$1A, ....... ;put the rest of the bytes here

.org $8000

;your program here

.org $FFFA
;6502 vectors here
.dw ResetVector
.dw NmiVector
.dw IrqVector

.incbin "mychr.chr"

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
 Post subject: Re: ASM6 Help
PostPosted: Sat Oct 13, 2018 9:53 pm 
Offline

Joined: Fri Oct 28, 2016 12:37 pm
Posts: 48
Maybe these templates will help you viewtopic.php?t=6160

It helped me when I started using ASM6


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

All times are UTC - 7 hours


Who is online

Users browsing this forum: Memblers and 1 guest


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