Load the media-size from the SAVE header instead of using hard-coded media-sizes, and determine whether to use the primary/secondary partition for the SAVE header via the DPFS table.