Page 1 of 1

ASM6 Help

Posted: Sat Oct 13, 2018 2:22 pm
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?

Re: ASM6 Help

Posted: Sat Oct 13, 2018 2:23 pm
by Dwedit
Did you include an .org somewhere?

Re: ASM6 Help

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

Re: ASM6 Help

Posted: Sat Oct 13, 2018 2:27 pm
by Dwedit
I'm talking about an origin address. .org is an assembler directive that defines what the current address is.

Re: ASM6 Help

Posted: Sat Oct 13, 2018 2:28 pm
by Tyler8x
where do I put it then?

Re: ASM6 Help

Posted: Sat Oct 13, 2018 2:32 pm
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"

Re: ASM6 Help

Posted: Sat Oct 13, 2018 9:53 pm
by casprog
Maybe these templates will help you viewtopic.php?t=6160

It helped me when I started using ASM6