# ca65 linker config # Physical areas of memory # Names need not match, but it makes it easier to remember if they do. MEMORY { ZEROPAGE: start = 0, size = $100; BSS: start = $200, size = $1800; ROM: start = $8000, size = $8000, fill = yes; BANK1: start = $18000, size = $8000, fill = yes; BANK2: start = $28000, size = $8000, fill = yes; BANK3: start = $38000, size = $8000, fill = yes; BANK4: start = $48000, size = $8000, fill = yes; BANK5: start = $58000, size = $8000, fill = yes; BANK6: start = $68000, size = $8000, fill = yes; BANK7: start = $78000, size = $8000, fill = yes; } # Logical areas code/data can be put into. SEGMENTS { ZEROPAGE: load = ZEROPAGE, type = zp; BSS: load = BSS, type = bss, align = $100; CODE: load = ROM, align = $8000; RODATA: load = ROM; TEST_DATA: load = ROM, start = $FFA0; HEADER: load = ROM, start = $FFC0; ROMINFO: load = ROM, start = $FFD5, optional = yes; VECTORS: load = ROM, start = $FFE0; # The extra banks BANK1: load = BANK1, align = $8000, optional = yes; BANK2: load = BANK2, align = $8000, optional = yes; BANK3: load = BANK3, align = $8000, optional = yes; BANK4: load = BANK4, align = $8000, optional = yes; BANK5: load = BANK5, align = $8000, optional = yes; BANK6: load = BANK6, align = $8000, optional = yes; BANK7: load = BANK7, align = $8000, optional = yes; }