10.9. Including .prg files

A prg-file contains a start address (the two first bytes) and some data. Prg files can be imported as memory blocks using the prgFiles parameter when defining the segment:

        // Importing prg files when defining segment       
        .segmentdef Misc1 [prgFiles="data/Music.prg, data/Charset2x2.prg"]


        // Another way of producing the same result
        .segment Misc2 []
        *=$1000 // Here we have to place the block manually
        .import c64 "data/Music.prg"
        *=$2000 // Here we have to place the block manually
        .import c64 "data/Charset2x2.prg"
 

Again, this can freely be combined with other ways of adding blocks to the segment.