home *** CD-ROM | disk | FTP | other *** search
- ; Assembler interface to Turbo Pascal - MULKEY
- ;
- ; Copyright 1988 by Mark R. Boler - All Rights Reserved
-
- TITLE MULKEY
-
- CODE SEGMENT BYTE PUBLIC
-
- ASSUME CS:CODE
-
- EXTRN UC_File: NEAR
-
- PUBLIC ClearOwner, UnLock
-
- UnlockOp EQU 27
- ClearOwnerOp EQU 30
-
- ; PROCEDURE xxxxxx(Handle: WORD); EXTERNAL;
-
- Handle EQU WORD PTR ss:[bx + 4]
-
- Unlock PROC FAR
- mov al, UnlockOp ; set op code
- CallEntry:
- mov bx, sp ; set up stack frame in bx
- push Handle ; set up for call to UC_File
- push ax
- call UC_File ; call it
- ret 2 ; clean up and return to caller
- Unlock ENDP
-
- ClearOwner PROC FAR
- mov al, ClearOwnerOp ; load op code
- jmp SHORT CallEntry ; make the call
- ClearOwner ENDP
-
- CODE ENDS
-
- END