ASM6 Help

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems. See the NESdev wiki for more information.

Moderator: Moderators

Post Reply
Tyler8x
Posts: 8
Joined: Tue Oct 09, 2018 8:31 am

ASM6 Help

Post by Tyler8x »

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?
User avatar
Dwedit
Posts: 4922
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: ASM6 Help

Post by Dwedit »

Did you include an .org somewhere?
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
Tyler8x
Posts: 8
Joined: Tue Oct 09, 2018 8:31 am

Re: ASM6 Help

Post by Tyler8x »

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?
User avatar
Dwedit
Posts: 4922
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: ASM6 Help

Post by Dwedit »

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!
Tyler8x
Posts: 8
Joined: Tue Oct 09, 2018 8:31 am

Re: ASM6 Help

Post by Tyler8x »

where do I put it then?
User avatar
Dwedit
Posts: 4922
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: ASM6 Help

Post by Dwedit »

;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!
casprog
Posts: 70
Joined: Fri Oct 28, 2016 12:37 pm

Re: ASM6 Help

Post by casprog »

Maybe these templates will help you viewtopic.php?t=6160

It helped me when I started using ASM6
Post Reply