Does it matter which assembler to use to build a NES rom?

Programming the 6502 microprocessor and its relatives in assembly and other languages.
Post Reply
shawnleblanc
Posts: 7
Joined: 20 Jun 2010

Does it matter which assembler to use to build a NES rom?

Post by shawnleblanc »

Shamefully n00b question ahead.

If I wanted to make a program that ran on a NES (hardware or emulator), does it matter which assembler to use? Would all of them, knowing which format I need to write the NES rom in, be able to produce the same thing?

I suspect the answer is yes, but being unfamiliar with 6502 assembly programming tools I don't want to pick one and find out it doesn't do what I want.
User avatar
BitWise
In Memoriam
Posts: 996
Joined: 02 Mar 2004
Location: Berkshire, UK
Contact:

Post by BitWise »

NES emulators use a special file format that supports bank switched ROM images. A standard 6502 assembler won't generate the right format file, you'll need one that understands how to build the header at the start of the file.

There is some information on NEW tools here http://nesdev.parodius.com/
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
doppelheathen
Posts: 4
Joined: 17 Oct 2008

Post by doppelheathen »

I've had a lot of success using asm6 for NES programming, and it lends itself well to other 6502 platforms as well.
rudla.kudla
Posts: 41
Joined: 20 Apr 2010

Post by rudla.kudla »

I'm using MADS, and until now, it was able to generate binary file compatible with any platform was needed.

You just need to know the format structure.

Specialized assembler would safe you a little (really a little) work.
Post Reply