home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG013.ARC
/
HIRES.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1979-12-31
|
2KB
|
73 lines
program HIRES;
{ Demonstration program in Turbo Pascal for
MicroBee HIgh RESolution Graphics developed
by Bob Burt
Note it is only necessary to set the first
11 of the 16 rows of pixels for each
character for 80 X 24 format }
type
pixels = array[1..11] of integer;
var
start,finish,count : integer;
row : pixels;
procedure PCG(var addr1,addr2 : integer; row : pixels);
var count2 : integer;
begin
count2 := 0;
for count := addr1 to addr2 do
begin
count2 := count2 + 1;
mem[count] := row[count2]
end
end; {procedure PCG}
begin {main}
clrscr;
writeln;
writeln('We remove the cursor ....');
start := -1536;
finish := -1521;
for count := 1 to 11 do
row[count] := 0;
PCG(start,finish,row);
delay(4000);
writeln(^G^M^J);
write('Now print first graphic (chr(254)) for horiz. line : ');
start := -32;
finish := -17;
for count := 1 to 5 do
row[count] := 0;
row[6] := 255;
for count := 7 to 11 do
row[count] := 0;
PCG(start,finish,row);
for count := 1 to 20 do
write(chr(254));
delay(4000);
writeln(^G^M^J);
write('Now print 2nd graphic (chr(253)) for vert. line : ');
start := -48;
finish := -33;
for count := 1 to 11 do
row[count] := 8;
PCG(start,finish,row);
for count := 1 to 20 do
write(chr(253));
writeln; writeln;
delay(4000);
write(^G,'.... and now restore the cursor >>>> ');
start := -1536;
finish := -1521;
for count := 1 to 11 do
row[count] := 255;
PCG(start,finish,row);
delay(4000);
writeln; writeln;
write(^G,'Press any key to exit the program : ');
repeat until keypressed
end. {main}