home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug099.arc
/
GRDSK.I
< prev
next >
Wrap
Text File
|
1979-12-31
|
768b
|
45 lines
Procedure GRSave(FileName : FileSpec);
var
I : Byte;
Buffer : array [0..$7FF] of byte;
Outfile : file;
Begin
Assign(Outfile,FileName);
Rewrite(Outfile);
for I := 128 to 135 do
begin
Port[28] := I;
Move(PCGRAM,Buffer,$800);
BlockWrite(Outfile,Buffer,16);
end;
Close(Outfile);
Port[28] := 128;
End;
Procedure GRLoad(FileName : FileSpec);
var
I : Byte;
Buffer : array [0..$7FF] of byte;
Infile : file;
Begin
Assign(Infile,FileName);
Reset(Infile);
for I := 128 to 135 do
begin
Port[28] := I;
BlockRead(Infile,Buffer,16);
Move(Buffer,PCGRAM,$800);
end;
Close(Infile);
Port[28] := 128;
End;