#include "\lc\header\dos.h"


/*---------------------------------------------------------------------------
SCROLLUP - Scroll Window Up

   no_lines = number of lines to scroll, =0 to blank the window
   y1 = ch=row number of upper left corner
   x1 = cl=column number of upper left corner
   y2 = dh=row number of lower right corner
   x2 = dl=column number of lower right corner
   attr= bh=disp attribute for blank lines, see screen.h

--------------------------------------------------------------------------*/

int scrollup(y1,x1,y2,x2,no_l_ines,attr)

int x1,y1,x2,y2,no_l_ines,attr;

{

union REGSS inregs;

if(y1<0 || y2<y1 || y2>24 || x1<0 || x2<x1 || x2>79 || no_l_ines > 24 || no_l_ines < 0)
   return(0);


inregs.h.ah = (char)6;
inregs.h.al = (char)no_l_ines;
inregs.h.ch = (char)y1;         /*load registers */
inregs.h.cl = (char)x1;
inregs.h.dh = (char)y2;
inregs.h.dl = (char)x2;
inregs.h.bh = (char)attr;

      vidint(&inregs);           /* call BIOS video interrupt */

return(0);

}

