1 ; SCCSID = @(#)exe.asm 1.1 85/04/10
2 ; SCCSID = @(#)exe.asm 1.1 85/04/10
3 BREAK <EXEC and EXE file structures>
5 ; EXEC arg block - load/go program
9 ; The following get used as arguments to the EXEC system call. They indicate
10 ; whether or not the program is executed or whether or not a program header
13 exec_func_no_execute EQU 1 ; no execute bit
14 exec_func_overlay EQU 2 ; overlay bit
17 Exec0_environ DW ? ; seg addr of environment
18 Exec0_com_line DD ? ; pointer to asciz command line
19 Exec0_5C_FCB DD ? ; default fcb at 5C
20 Exec0_6C_FCB DD ? ; default fcb at 6C
24 Exec1_environ DW ? ; seg addr of environment
25 Exec1_com_line DD ? ; pointer to asciz command line
26 Exec1_5C_FCB DD ? ; default fcb at 5C
27 Exec1_6C_FCB DD ? ; default fcb at 6C
28 Exec1_SP DW ? ; stack pointer of program
29 Exec1_SS DW ? ; stack seg register of program
30 Exec1_IP DW ? ; entry point IP
31 Exec1_CS DW ? ; entry point CS
35 Exec3_load_addr DW ? ; seg address of load point
36 Exec3_reloc_fac DW ? ; relocation factor
40 ; Exit codes in upper byte
46 Exit_Keep_process EQU 3
53 exe_signature DW ? ; must contain 4D5A (yay zibo!)
54 exe_len_mod_512 DW ? ; low 9 bits of length
55 exe_pages DW ? ; number of 512b pages in file
56 exe_rle_count DW ? ; count of reloc entries
57 exe_par_dir DW ? ; number of paragraphs before image
58 exe_min_BSS DW ? ; minimum number of para of BSS
59 exe_max_BSS DW ? ; max number of para of BSS
60 exe_SS DW ? ; stack of image
61 exe_SP DW ? ; SP of image
62 exe_chksum DW ? ; checksum of file (ignored)
63 exe_IP DW ? ; IP of entry
64 exe_CS DW ? ; CS of entry
65 exe_rle_table DW ? ; byte offset of reloc table
66 exe_iov DW ? ; overlay number (0 for root)
67 exe_sym_tab DD ? ; offset of symbol table in file
70 exe_valid_signature EQU 5A4Dh
71 exe_valid_old_signature EQU 4D5Ah
77 sym_name DB 255 dup (?)