> If I store a PIC file of an area of the screen in MODE 8, which measures 202 > pixels across, that is not exactly divisible by 2. You need 100 bytes to > store the first 200 pixels and an extra 2 bytes to store the last 2 pixels > (due to the fact that 1 word stores 4 pixels). > > As a result, the PIC header would need to read: > > $4AFC > 202 > 50 (presuming height of area is 50 lines) > 102 > 8 > > Is this correct??
Looks good, and when reading never assume anything about line length, just use the value supplied (with a possible exception when the line length is specified as zero). Joachim
