A78 Header
For ease of creation, add the following before the code to create the A78 header automatically:
SEG ROM
HEADER ORG ROMTOP-128
DC.B 1 ; 0 Header version - 1 byte
DC.B "ATARI7800" ; 1..16 "ATARI7800 " - 16 bytes
DS 7,32
DC.B "Your Name Here"; 17..48 Cart title - 32 bytes
DS HEADER+49-.,0
DC.B $00,$00,256->ROMTOP,$00; 49..52 data length - 4 bytes
DC.B $00,$00 ; 53..54 cart type - 2 bytes
; bit 0 - Pokey cart
; bit 1 - Supercart bank switched
; bit 2 - Supercart RAM at $4000
; bit 3 - ROM at $4000
; bit 4 - Bank 6 at $4000
; bit 8-15 - Special
; 0 = Normal cart
DC.B 1 ; 55 controller 1 type - 1 byte
DC.B 1 ; 56 controller 2 type - 1 byte
; 0 = None
; 1 = Joystick
; 2 = Light Gun
DC.B 0 ; 57 0 = NTSC 1 = PAL
DC.B 0 ; 58 Save data peripheral - 1 byte (version 2)
; 0 = None / unknown (default)
; 1 = High Score Cart (HSC)
; 2 = SaveKey
ORG HEADER+63
DC.B 0 ; 63 Expansion module
; 0 = No expansion module (default on all currently released games)
; 1 = Expansion module required
ORG HEADER+100 ; 100..127 "ACTUAL CART DATA STARTS HERE" - 28 bytes
DC.B "ACTUAL CART DATA STARTS HERE"
ROMTOP ORG $8000