Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - call trhelp [with <c keyword>] http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson