home *** CD-ROM | disk | FTP | other *** search
-
- (*----------------------------------------------------------------------*)
- (* Scroll --- Scroll section of screen *)
- (*----------------------------------------------------------------------*)
-
- Procedure Scroll ( Y1, Y2, X1, X2, Nlines : Integer );
-
- (*----------------------------------------------------------------------*)
- (* *)
- (* Procedure: Scroll *)
- (* *)
- (* Purpose: Scrolls portion of screen. *)
- (* *)
- (* Calling sequence: *)
- (* *)
- (* Scroll( Y1, Y2, X1, X2, Nlines : Integer ); *)
- (* *)
- (* *)
- (* *)
- (* Calls: INTR *)
- (* *)
- (* Remarks: *)
- (* *)
- (* The indicated portion of the screen is scrolled up or down. *)
- (* If Nlines > 0, then the screen is scrolled up. If Nlines < 0, *)
- (* the screen is scrolled down. Setting Nlines to zero blanks *)
- (* the entire region. *)
- (* *)
- (* *)
- (*----------------------------------------------------------------------*)
-
- Var
- Reg: Regpack;
-
- Begin (* Scroll *)
-
- Reg.Cl := Y1;
- Reg.Ch := X1;
-
- Reg.Dl := Y2;
- Reg.Dh := X2;
-
- Reg.Bx := 0;
-
- If Nlines >= 0 Then
- Reg.Ax := $0600 OR Nlines
- Else
- Reg.Ax := $0700 OR ABS( Nlines );
-
- INTR( $10 , Reg );
-
- End (* Scroll *);