3.7 Directive OPTION MZ

Asmc Macro Assembler

3.7 Directive OPTION MZ

Directive OPTION MZ allows to fine-tune the values written to the MZ header if output format MZ (see -mz cmdline option) is selected. For other output formats, this option has no effect. The syntax for the directive is:
OPTION MZ:[start_fixups][:header_align][:heap_min][:heap_max]
The parameters are:

start_fixupsoffset within the header where segment fixups will start. The size of the header will always be at least this value, even if there are no fixups at all. Default - and minimum - value is 1Eh.
header_alignalignment of the header (including segment fixups). Value must be a power of 2, 10h is the default and minimum.
heap_minthe additional space (in paragraphs) which is needed by the binary to run. Default is the total of the sizes of the uninitialized BSS and STACK segments.
heap_maxspace (in paragraphs) which the binary would like to have. Default is FFFFh.