1987-01-08 10:13:48 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
|
|
|
|
1985-01-07 13:57:25 +00:00
|
|
|
.define begtext,begdata,begbss
|
|
|
|
.define hol0,.reghp,.limhp,.trppc,.ignmask
|
1987-02-12 13:36:55 +00:00
|
|
|
.define ERANGE,ESET,EHEAP,ECASE,EILLINS,EIDIVZ,EODDZ
|
1992-06-30 15:08:35 +00:00
|
|
|
.define EXIT, BRK
|
1987-01-08 10:13:48 +00:00
|
|
|
.extern _end
|
1985-01-07 13:57:25 +00:00
|
|
|
|
|
|
|
ERANGE = 1
|
|
|
|
ESET = 2
|
|
|
|
EIDIVZ = 6
|
|
|
|
EHEAP = 17
|
|
|
|
EILLINS = 18
|
|
|
|
EODDZ = 19
|
|
|
|
ECASE = 20
|
|
|
|
|
1987-01-08 10:13:48 +00:00
|
|
|
.sect .text
|
1985-01-07 13:57:25 +00:00
|
|
|
begtext:
|
1987-01-08 10:13:48 +00:00
|
|
|
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
|
|
|
|
xor bp,bp
|
1991-03-06 14:26:16 +00:00
|
|
|
call __m_a_i_n
|
1992-06-30 15:02:56 +00:00
|
|
|
EXIT:
|
1987-01-08 10:13:48 +00:00
|
|
|
int 0x81
|
1992-06-30 15:02:56 +00:00
|
|
|
BRK:
|
|
|
|
jmp __brk
|
1987-01-08 10:13:48 +00:00
|
|
|
.sect .data
|
1985-01-07 13:57:25 +00:00
|
|
|
begdata:
|
|
|
|
hol0:
|
1987-01-08 10:13:48 +00:00
|
|
|
.data2 0,0
|
|
|
|
.data2 0,0
|
1991-02-22 13:49:51 +00:00
|
|
|
.reghp:
|
|
|
|
.data2 endbss
|
|
|
|
.limhp:
|
|
|
|
.data2 endbss
|
|
|
|
.ignmask:
|
|
|
|
.data2 0
|
|
|
|
.trppc:
|
|
|
|
.data2 0
|
1985-01-07 13:57:25 +00:00
|
|
|
|
1987-01-08 10:13:48 +00:00
|
|
|
.sect .bss
|
1985-01-07 13:57:25 +00:00
|
|
|
begbss:
|