how to make an autostart cartridge binary image?
Posted: Tue Oct 30, 2018 10:28 pm
I'm surprisingly not finding any specifics on how to format the first bytes of a cartridge binary image to have it autostart at reset! I have a game I wrote that I would like to burn into an EPROM for use with the cart PCB from TFW8B, but I'm stumped as to how to frame the start of the bytes at $A000!
I know there is a magic byte sequence that needs to appear at the start (?) of the binary (at $A000?), and the VIC will look for that sequence at reset. If it finds it, it runs the code. So where does the code start - immediately after the magic sequence? Is there anything special that the code needs to do, for example clear the interrupt flag, setup any interrupt vectors, etc?
If anyone could share a recipe with me I would most appreciate it!
I know there is a magic byte sequence that needs to appear at the start (?) of the binary (at $A000?), and the VIC will look for that sequence at reset. If it finds it, it runs the code. So where does the code start - immediately after the magic sequence? Is there anything special that the code needs to do, for example clear the interrupt flag, setup any interrupt vectors, etc?
If anyone could share a recipe with me I would most appreciate it!