.sect .text; .sect .rom; .sect .data; .sect .bss .define begtext,begdata,begbss .define hol0,.reghp,.limhp,.trppc,.ignmask .define ERANGE,ESET,EHEAP,ECASE,EILLINS .extern _end .extern np ERANGE = 1 ESET = 2 EIDIVZ = 6 EHEAP = 17 EILLINS = 18 EODDZ = 19 ECASE = 20 .sect .text begtext: mov bx,sp mov cx,(bx) add bx,2 mov ax,cx inc ax shl ax,1 add ax,bx push ax push bx push cx mov (np),begbss mov bx,endbss push bx call _brk ! allocate space for bss pop si xor bp,bp call _m_a_i_n int 0x81 .sect .data begdata: hol0: .data2 0,0 .data2 0,0 argv: .data2 3f envp: .data2 0 3: .asciz "PROGRAM" .reghp: .data2 endbss .limhp: .data2 endbss .ignmask: .data2 0 .trppc: .data2 0 .sect .bss begbss: