home *** CD-ROM | disk | FTP | other *** search
- ;************************************************
- ;* _TVSEND.ASM *
- ;* (c) Copyright 1988 Ralf Brown *
- ;* All Rights Reserved *
- ;* *
- ;* May be freely copied for noncommercial use *
- ;************************************************
-
- _TEXT SEGMENT BYTE PUBLIC 'CODE'
-
- PUBLIC _TVSEND0
- PUBLIC _TVSEND00
- PUBLIC _TVSEND1
- PUBLIC _TVSEND10
-
- _TVSEND0 PROC FAR
- _TVSEND00:
- POP CX
- POP DX ; Save return address
- POP BX ; get message modifier
- POP AX ; get message
- MOV BH,AL
- MOV AH,12H ; Function call is "SEND MESSAGE"
- INT 15H ; call TopView/DESQview
- PUSH DX ; Restore return address
- PUSH CX
- RET
- _TVSEND0 ENDP
-
- _TVSEND1 PROC FAR
- _TVSEND10:
- POP CX
- POP DX ; Save return address
- POP BX ; get message modifier
- POP AX ; get message
- MOV BH,AL
- MOV AH,12H ; Function call is "SEND MESSAGE"
- INT 15H ; call TopView/DESQview
- MOV BX,DX ; need to put return address elsewhere because we need DX
- POP AX ; get single return value into the proper registers
- POP DX ; for returning a "long" to Turbo C
- PUSH BX ; Restore return address
- PUSH CX
- RET
- _TVSEND1 ENDP
-
- _TEXT ENDS
- END
-
-