home *** CD-ROM | disk | FTP | other *** search
-
- Here is an example of using the Clipper CALL command with an
- routine written in assembly language. the CALLed routine issues
- DOS Interrupt 5 which sends the contents of the current screen to
- your printer (same as pressing the SHIFT PrtSc keys). Use your
- favorite assembler to create the .OBJ file and then link with the
- second set of code for your Clipper .EXE file.
-
- Address all questions on this program to the author care of NAN002.
-
- *****************************************************************
-
- ;Program.....PRT_SCRN.ASM
- ;Author......Ray Love
- ;Date........12/15/85
- ;Comments....Routine to call DOS Interrupt 5 (Print Screen)
-
- PUBLIC prt_scrn ;name routine to CALL
- _PROG SEGMENT byte ;begin program segment
- ASSUME CS:_PROG ;and put code there
- ;
- prt_scrn PROC far ;far process
- push BP ;save registers
- push DS
- push ES
- int 5 ;print screen
- pop ES ;restore registers
- pop DS
- pop BP
- ret ;return
- prt_scrn endp ;end routine
- _PROG ends ;end segment
- end ;end program
- *****************************************************************
- * Program.: PRT_TEST.PRG
- * Author..: Ray Love
- * Date....: 12/15/85
- * Notes...: Test to CALL prt_scrn assembly language routine.
- *****************************************************************
-
- CLEAR
- *paint the screen before CALL
- FOR X = 1 TO 23
- ? REPLICATE("X X X X ",9)
- NEXT
- CALL PRT_SCRN
- RETURN
- * EOF Prt_test
- SPACE(3)
- ?? field_name
- ?? SPACE(5)
- ?? TYPENAME()
- ?? SPACE(5)