1STACK_SIZE = 8192 2HEAP_SIZE = 16384 3 4 .section ".header","a" 5 .balign 512 6__header_start: 7 .short 0x5a4d 8 .short _exe_edata_low 9 .short _exe_edata_blocks 10 .short 0 /* Relocation count */ 11 .short (__header_end - __header_start) >> 4 12 .short _exe_bss_paras 13 .short _exe_bss_paras 14 .short _exe_text_seg /* SP */ 15 .short __stack_end 16 .short 0 /* Checksum */ 17 .short _start 18 .short _exe_text_seg /* CS */ 19 .short __reloc 20 .short 0 /* Overlay number */ 21/* 22 * Don't put these fields in unless we actually have an NE or PE image; 23 * some tools might get confused and assume __reloc = 64 automatically 24 * means an NE/PE image or a Windows image of some sort. 25 */ 26#if 0 27 .short 0 /* Unknown/pad? */ 28 .short 0 /* Unknown/pad? */ 29 .short 0 /* Unknown/pad? */ 30 .short 0 /* Unknown/pad? */ 31 .short 0 /* Unknown/pad? */ 32 .short 0 /* Unknown/pad? */ 33 .short 0 /* Unknown/pad? */ 34 .short 0 /* Unknown/pad? */ 35 .short 0 /* Unknown/pad? */ 36 .short 0 /* Unknown/pad? */ 37 .short 0 /* Unknown/pad? */ 38 .short 0 /* Unknown/pad? */ 39 .short 0 /* Unknown/pad? */ 40 .short 0 /* Unknown/pad? */ 41 .short 0 /* Unknown/pad? */ 42 .short 0 /* Unknown/pad? */ 43 .long 0 /* Pointer to Windows PE header */ 44#endif 45 .balign 4 46__reloc: 47 .balign 512 48__header_end: 49 50 .section ".heap","aw" 51 .space HEAP_SIZE 52 53 .section ".stack","aw" 54 .space STACK_SIZE 55