home *** CD-ROM | disk | FTP | other *** search
- {***********************************************************************}
- function color : integer;
- var mode : byte absolute $0000:$0449;
- begin
- color := mode;
- end;
- {************************************************************************}
- function scrn_seg : integer;
- begin
- if color <7 then scrn_seg := $b800 else
- if color =7 then scrn_seg := $b000 else
- begin
- clrscr;
- gotoxy(2,12);
- writeln(^g'ABORTING PROGRAM...Monitor Type cannot be identified');
- halt;
- end;
- end;
- {************************************************************************}
- procedure cursor(tln,bln : byte);
- begin
- with r do
- begin
- r.ah := 1;
- r.ch := tln;
- r.cl := bln;
- intr($10,r);
- end;
- end;
- {************************************************************************}
- procedure big_cursor;
- begin
- if (scrn_seg = $b800) then cursor(1,7) else
- cursor(2,12);
- end;
- {************************************************************************}
- procedure std_cursor;
- begin
- if (scrn_seg = $b800) then cursor(6,7) else
- cursor(12,13);
- end;
- {************************************************************************}