Hey, everyone.
I'm a longtime lurker here and thought I'd finally come out of the shadows and say hi. I've written some macros for ASM6 to help make the process of generating iNES headers a lot simpler and more human-readable, and I thought I'd go ahead and share them. Instead of having to manually code (and de-code) your iNES headers, using these macros you can instead write something like:
...and the macros will automatically generate all of the correct header information. The code is also capable of seamlessly switching from version 1 to (the proposed) version 2 of the iNES standard and will do so transparently without any additional work if the header requires it. All of this is done solely with ASM6 preprocessor directives and requires no external executables or different compilation procedures than what would already be used for your code.
The code should be available from here: https://sites.google.com/site/6502stuff/nesdev/iNES_header.zip?attredirects=0&d=1. I've not used Google to store files before, so if the URL breaks please tell me and I'll find somewhere else to put it.
The source is public domain, so feel free to do whatever you want with it. Use it in any of your projects (paid or otherwise) or print it out and wear it as a hat if you'd like. That said, I'd love it if you let me know if this helps you make something cool - feel free to drop me a line either here on the forums or via email.
Happy coding! (And hi, everybody!)
I'm a longtime lurker here and thought I'd finally come out of the shadows and say hi. I've written some macros for ASM6 to help make the process of generating iNES headers a lot simpler and more human-readable, and I thought I'd go ahead and share them. Instead of having to manually code (and de-code) your iNES headers, using these macros you can instead write something like:
Code:
INCLUDE iNES_header.asm6
iNES_Mapper iNES_UxROM
iNES_Four_Screen_Mirroring
iNES_PRG_ROM_Pages 8
iNES_CHR_ROM_Pages 1
iNES_Battery_Backed
iNES_End_Header
iNES_Mapper iNES_UxROM
iNES_Four_Screen_Mirroring
iNES_PRG_ROM_Pages 8
iNES_CHR_ROM_Pages 1
iNES_Battery_Backed
iNES_End_Header
...and the macros will automatically generate all of the correct header information. The code is also capable of seamlessly switching from version 1 to (the proposed) version 2 of the iNES standard and will do so transparently without any additional work if the header requires it. All of this is done solely with ASM6 preprocessor directives and requires no external executables or different compilation procedures than what would already be used for your code.
The code should be available from here: https://sites.google.com/site/6502stuff/nesdev/iNES_header.zip?attredirects=0&d=1. I've not used Google to store files before, so if the URL breaks please tell me and I'll find somewhere else to put it.
The source is public domain, so feel free to do whatever you want with it. Use it in any of your projects (paid or otherwise) or print it out and wear it as a hat if you'd like. That said, I'd love it if you let me know if this helps you make something cool - feel free to drop me a line either here on the forums or via email.
Happy coding! (And hi, everybody!)