summaryrefslogtreecommitdiff
path: root/dos/header.S
blob: e7504471e05ff05bcf077d3a1f9ed748b01a16d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
STACK_SIZE	= 8192
HEAP_SIZE	= 16384

		.section ".header","a"
		.balign	512
__header_start:
		.short	0x5a4d
		.short	_exe_edata_low
		.short	_exe_edata_blocks
		.short	0		/* Relocation count */
		.short	(__header_end - __header_start) >> 4
		.short	_exe_bss_paras
		.short	_exe_bss_paras
		.short	_exe_text_seg	/* SP */
		.short	__stack_end
		.short	0		/* Checksum */
		.short	_start
		.short	_exe_text_seg	/* CS */
		.short	__reloc
		.short	0		/* Overlay number */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.long	0		/* Pointer to Windows PE header */
__reloc:
		.balign	512
__header_end:

		.section ".heap","aw"
		.space	HEAP_SIZE

		.section ".stack","aw"
		.space	STACK_SIZE