nesdev.com
http://forums.nesdev.com/

ASM6 Help
http://forums.nesdev.com/viewtopic.php?f=2&t=17918
Page 1 of 1

Author:  Tyler8x [ Sat Oct 13, 2018 2:22 pm ]
Post subject:  ASM6 Help

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?

Author:  Dwedit [ Sat Oct 13, 2018 2:23 pm ]
Post subject:  Re: ASM6 Help

Did you include an .org somewhere?

Author:  Tyler8x [ Sat Oct 13, 2018 2:24 pm ]
Post subject:  Re: ASM6 Help

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?

Author:  Dwedit [ Sat Oct 13, 2018 2:27 pm ]
Post subject:  Re: ASM6 Help

I'm talking about an origin address. .org is an assembler directive that defines what the current address is.

Author:  Tyler8x [ Sat Oct 13, 2018 2:28 pm ]
Post subject:  Re: ASM6 Help

where do I put it then?

Author:  Dwedit [ Sat Oct 13, 2018 2:32 pm ]
Post subject:  Re: ASM6 Help

;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"

Author:  casprog [ Sat Oct 13, 2018 9:53 pm ]
Post subject:  Re: ASM6 Help

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

It helped me when I started using ASM6

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/