home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug120.arc
/
PASCAL.LBR
/
SCRNDUMP.I
< prev
next >
Wrap
Text File
|
1979-12-31
|
896b
|
48 lines
procedure ScreenDump;
{
This procedure does a screen dump of an 80 * 24 screen
Can only handle standard graphics only
}
const
lessheight = #27'1' ;
default = #27'2' ;
BIG = #27'K'#16#2;
ROMLatch = 11;
ScreenRAM = 0;
CharROM = 1;
var
x,y, TopLine : Integer;
PCG, Line, ch : Byte;
begin
port[28] := 0;
Writeln(LST,lessheight);
for X := 0 to 79 do
begin
writeln(lst);
write(lst,' ':5, BIG);
for y := 23 downto 0 do
begin
PCG := mem[ $F000 + y * 80 + x ];
TopLine := $F000+PCG*16;
for line := 10 downto 0 do
begin
Port[ROMLatch] := CharROM;
ch := Mem[topline +line];
write(LST, Chr(ch),chr(ch));
port[ROMLatch] := ScreenRAM
end;
end
end;
Writeln(lst, Default);
end.