home *** CD-ROM | disk | FTP | other *** search
- /*
- * GRASPTC -- program to demonstrate how to interface GRASP
- * with Turbo C version 1.0
- * You can ignore the "non-portable pointer assignment"
- * warning generated by the compiler.
- */
-
- #include <string.h> /* include string funtions */
- #include <dos.h> /* include interrupt support */
-
- #define BIOSCALL 0x10
-
- void Grasp(char *cmd_str);
-
- main()
- {
- Grasp("Pload Grasp,1"); /* load picture into buffer 1 */
- Grasp("Pfade 0,1"); /* fade it onto the screen */
- Grasp("Waitkey"); /* wait for user keystroke */
- }
-
-
- void Grasp(command)
- char *command;
- {
- _CX = strlen(command); /* CX = length of command */
- _DX = command; /* ES:DX points to string */
- _AH = 'G'; /* do function 'G' */
- geninterrupt(BIOSCALL); /* perform the interrupt */
- }
-