CALL TRHELP [WITH <C keyword>]
Activate TRHELP from a running Clipper program.
This assembly language source code allows you to create an OBJ
file that will link with your Clipper program to activate TRHELP.
Write it into your editor with Ctrl-W and assemble it with
MASM 5.0 or higher.
; TRHELP.ASM
; version 1.00 for Clipper programs
;
; By Leonard Zerman
; Placed in the Public Domain by Tom Rettig Associates, 1988.
;
; Call this function from a Clipper program to pop-up
; Tom Rettig's HELP, optionally with a selected keyword.
;
; This source file must be assembled into an .OBJ file, linked
; with your application, and CALLed from your Clipper program.
;
; Written for Microsoft MASM 5.0 and later versions only.
; Large memory model.
;
; Assemble and link with your application.
; MASM TRHELP; (creates OBJ file)
; LINK <your OBJ list>+TRHELP; (creates EXE file)
;
; Usage:
; CALL TRHELP [WITH <C keyword>]
;--------------------------------------------------------------;
KEYBOARDINT EQU 16h
POPUPREQUEST EQU 98
.MODEL LARGE
.CODE
PUBLIC TRHELP
TRHELP PROC
PUSH BP
MOV BP,SP
MOV AH,POPUPREQUEST ; signal to TRHELP
INT KEYBOARDINT ; call TRHELP via interrupt
POP BP
RETF
TRHELP ENDP
END
;--------------------------------------------------------------;
Placed in the Public Domain by Tom Rettig Assoc.