home *** CD-ROM | disk | FTP | other *** search
- program grasptp4;
-
- uses DOS; { Include DOS unit -- this contains the
- pre-defined Registers type }
-
- Type LString = String[255];
-
- var InRegs : Registers; { Declare InRegs to be of this type }
-
- Procedure Grasp(S:LString);
- begin
- InRegs.AH:=BYTE('G'); { Grasp function call is 'G' }
- InRegs.CX:=Length(S); { Set length of Grasp Command }
- InRegs.ES:=SEG(S); { ES:DX points to command string }
- InRegs.DX:=OFS(S)+1; { Increment past string length byte }
- INTR($10, InRegs); { Call the Grasp Video Routines }
- end;
-
- Begin
- Grasp('Pload grasp,1'); { Load picture into buffer 1 }
- Grasp('Pfade 1,1'); { Fade it onto screen }
- Grasp('waitkey'); { Wait for keystroke from user }
- End.
-
-