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
/
PLOT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1979-12-31
|
1KB
|
52 lines
program PLOT;
{ Demonstration program in Turbo Pascal for
the MicroBee developed by Bob Burt
Program to set up PCG on the MicroBee for
LORES graphics and PLOT between any pair
of x,y coordinates, assuming a screen with
64 x 16 format
x coordinate range: 0 to 127
y coordinate range: 0 to 47 }
const
title = '*** Plotting with LORES Graphics ***';
space18 = ' ';
var
x1,y1,x2,y2 : real;
count : byte;
{$I set64.pro}
{$I lores64.pro}
{$I normal.pro}
{$I draw64.pro}
{$I plot.pro}
begin {main}
clrscr;
write(space18);
writeln(title);
writeln;
writeln('Address of "draw" is :',addr(draw));
writeln;
writeln('Plot values for x : 0 to 127');
writeln('Plot values for y : 0 to 47');
writeln('Coordinates 0,0 are at the top left of the screen');
writeln;
writeln('Note - enter plot values separated by spaces, NOT commas!');
writeln;
write('Enter plot values (x1 y1 x2 y2) : ');
readln(x1,y1,x2,y2);
set64;
lores64;
plot(x1,y1,x2,y2);
repeat until keypressed;
normal;
clrscr;
writeln(^G)
end {main}.