home *** CD-ROM | disk | FTP | other *** search
- ;
- ; The Greenleaf Comm Library
- ;
- ; Copyright (C) 1990 Greenleaf Software Inc. All Rights Reserved.
- ;
- .xlist
- include model.h
- include prologue.h
- include asiports.equ
- .list
-
- dseg _commlib
- extrn tblptr:word
- endds
-
- pseg _asregister
-
- ;==>-- void _asregister(p)
- ; struct TABLEPORT *p;
- ;
- ; This function _asiregister() is only called once, the first time
- ; asifirst() is called. It's parameter points to the base of the
- ; array of pointers pointing to the port information structure.
- ;
- cproc _asregister,,_asregis,,,<DS,ES,NOSI,NODI>
- if _LDATA
- les bx,parm1_
- else
- mov bx,ds
- mov es,bx
- mov bx,parm1_
- endif
- mov word ptr tblptr,bx
- mov word ptr tblptr+2,es
- xor ax,ax
- cproce
-
- endps
- end
-
-