e01.org

DOS MZ executable

The DOS MZ executable format is the executable file format used for .EXE files under the DOS and Windows operating systems. The file can be identified by the ASCII string "MZ" (hexadecimal: 4D 5A) at the beginning of the file (the "magic number"). "MZ" are the initials of Mark Zbikowski, one of the leading developers of MS-DOS. The MZ DOS executable file is newer than the COM executable format and differs from it. The DOS executable header contains relocation information, which allows multiple segments to be loaded at arbitrary memory addresses, and it supports executables larger than ; however, the format still requires relatively low memory limits. These limits were later bypassed using... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

The DOS MZ executable format is the executable file format used for .EXE files under the DOS and Windows operating systems. The file can be identified by the ASCII string "MZ" (hexadecimal: 4D 5A) at the beginning of the file (the "magic number"). "MZ" are the initials of Mark Zbikowski, one of the leading developers of MS-DOS. The MZ DOS executable file is newer than the COM executable format and differs from it. The DOS executable header contains relocation information, which allows multiple segments to be loaded at arbitrary memory addresses, and it supports executables larger than ; however, the format still requires relatively low memory limits. These limits were later bypassed using DOS extenders. MOV AX, @DATA MOV DS, AX PUSH DS XOR AX, AX PUSH AX Program termination would then be performed by a RETF instruction, which would retrieve the original segment address with the PSP from the stack and then jump to address 0, which contained an INT 20h instruction. The DOS 2.x API introduced a new program termination function, INT 21h Function 4Ch which does not require saving the PSP segment address at the start of the program, and Microsoft advised against the use of the older DOS 1.x method. ==Further reading== ==References==

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"DOS MZ executable". 1774697143. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1345829573

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·