ASM6 Help

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

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

ASM6 Help

Post by Tyler8x » Sat Oct 13, 2018 2:22 pm

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: 4233
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: ASM6 Help

Post by Dwedit » Sat Oct 13, 2018 2:23 pm

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 » Sat Oct 13, 2018 2:24 pm

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: 4233
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: ASM6 Help

Post by Dwedit » Sat Oct 13, 2018 2:27 pm

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 » Sat Oct 13, 2018 2:28 pm

where do I put it then?

User avatar
Dwedit
Posts: 4233
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: ASM6 Help

Post by Dwedit » Sat Oct 13, 2018 2:32 pm

;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: 54
Joined: Fri Oct 28, 2016 12:37 pm

Re: ASM6 Help

Post by casprog » Sat Oct 13, 2018 9:53 pm

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

It helped me when I started using ASM6

Post Reply