When I first started, I liked NESASM, because it could generate the header for me, but I quickly switched to asm6. It's just a much better assembler. I did however get fed up with making the iNES/NES 2.0 headers by hand, so I wrote this little helper file a few years back.
It might be useful to someone, so I've finally decided to release it.
Example usage:
Edit:
asm6 didn't like the ASSERT macros. Replaced them with if's.
It might be useful to someone, so I've finally decided to release it.
Example usage:
Code:
INES_2_0 = INES_YES ; Because emulators should support this!
INES_MAPPER = INES_NROM ; Mapper 0
INES_PRG = 1 ; Only 1 bank of 16KiB PRG ROM
INES_CHR = 1 ; Only 1 of 8KiB CHR ROM
INES_MIRRORING = INES_HORIZONTAL ; Horizonal mirroring
INES_SYSTEM = INES_PAL ; Force PAL mode emulation
.include "iNES_Header.asm" ; Generate and write the header
INES_MAPPER = INES_NROM ; Mapper 0
INES_PRG = 1 ; Only 1 bank of 16KiB PRG ROM
INES_CHR = 1 ; Only 1 of 8KiB CHR ROM
INES_MIRRORING = INES_HORIZONTAL ; Horizonal mirroring
INES_SYSTEM = INES_PAL ; Force PAL mode emulation
.include "iNES_Header.asm" ; Generate and write the header
Edit:
asm6 didn't like the ASSERT macros. Replaced them with if's.