ack/mach/minix/libsys/head_em.s

54 lines
717 B
ArmAsm
Raw Normal View History

1988-04-19 10:19:15 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.define begtext,begdata,begbss
.define hol0,.reghp,.limhp,.trppc,.ignmask
.define ERANGE,ESET,EHEAP,ECASE,EILLINS,EIDIVZ,EODDZ
1992-06-30 15:11:49 +00:00
.define EXIT, BRK
1988-04-19 10:19:15 +00:00
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
xor bp,bp
1991-03-06 14:26:16 +00:00
call __m_a_i_n
1989-11-08 11:22:50 +00:00
add sp,6
1992-06-30 15:11:49 +00:00
EXIT:
push ax
1989-11-08 11:22:50 +00:00
call __exit
1992-06-30 15:11:49 +00:00
BRK:
jmp __brk
1988-04-19 10:19:15 +00:00
.sect .data
begdata:
hol0:
.data2 0,0
.data2 0,0
.reghp:
.data2 endbss
.limhp:
.data2 endbss
.ignmask:
.data2 0
.trppc:
.data2 0
.sect .bss
begbss: