home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Intermedia 1998 January
/
inter1_98.iso
/
www
/
rozi
/
RAW1.ZIP
/
MGPTXT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-01-04
|
2KB
|
69 lines
{****************************************************************************}
{* *}
{* MegaPlay v.2.0 *}
{* Layout Control Unit *}
{* *}
{****************************************************************************}
Unit MGPTXT;
INTERFACE
Uses CRT;
var
yline:word; { Used in main module }
procedure Intro;
procedure Invis; { Make cursor invisible }
function XSpace(num:byte;sym:string):string; { Make a string of SYM chars }
function UCase(sx:string):string; { "UpCase" the string }
IMPLEMENTATION
{****************************************************************************}
procedure Intro;
var
i:byte;
begin
textcolor(1);
Write('╔',XSpace(78,'═'),'╗');
Write('║',XSpace(78,' '),'║');
Write('╚',XSpace(78,'═'),'╝');
textcolor(7);
gotoxy(2,wherey-2);
textcolor(12);
Writeln(' MegaPlay v.1.1 By Frozen Fire. April 8, 1996');
gotoxy(1,wherey+1);
textcolor(7);
end;
{****************************************************************************}
procedure invis;assembler;
asm
push ax
push dx
mov ah,02h
mov bh,0
mov dl,1
mov dh,25
int 10h
pop dx
pop ax
end;
{****************************************************************************}
function XSpace;
var
sx:string;
z:byte;
begin
sx:='';
for z:=1 to num do
sx:=sx+sym;
XSpace:=sx;
end;
{****************************************************************************}
function UCase;
var
i:byte;
begin
for i := 1 to Length(sx) do
sx[i] := UpCase(sx[i]);
UCase:=sx;
end;
{****************************************************************************}
END.