home *** CD-ROM | disk | FTP | other *** search
- page 60,132
- ;
- ; The Greenleaf Comm Library
- ;
- ; Copyright (C) 1984-90 Greenleaf Software Inc. All Rights Reserved.
- ;
- .xlist
- include model.h
- include prologue.h
- include asiports.equ
- .list
-
- pseg _asibreak
-
-
- ;**<< _ A S I B R E A K >>**
- ;
- ; void _asibreak( ioaddress, ctrl )
- ;
- ; Turn BREAK explicitly ON or OFF.
- ;
- cproc _asibreak,,_asibrea,,,<NOSI,NODI>
- mov dx,parm1_
- add dx,LCREG ; address line ctrl reg
- cli
- in al,dx ; read current value
- KILL_TIME ;Let the 8250 rest for a while
- and al,not SBREAK ; assume turning off
- test word ptr parm2_,1 ;check assumption
- jz setbrk ;if turning off
- or al,SBREAK ;assummed wrong
- setbrk: out dx,al ;set 8250
- KILL_TIME
- sti
- xor ax,ax ;return 0
- cproce
- endps
- end
-