home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug013.arc
/
SETRESET.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1979-12-31
|
2KB
|
79 lines
program SETRESET;
{ Demonstration program in Turbo Pascal for
the MicroBee developed by Bob Burt
Program to set up PCG on the MicroBee for
LORES graphics and set or reset any x,y
coordinates, assuming a screen with
80 x 24 format
x coordinate range: 0 to 159
y coordinate range: 0 to 71
0,0 at top left of screen }
const
title = '*** Setting or Resetting points LORES Graphics ***';
space14 = ' ';
var
count : integer;
x,y,s,count2 : byte;
saveX,saveY : array[1..300] of byte;
{$I normal.pro}
{$I lores80.pro}
{$I draw2.pro}
{$I point.pro}
{$I sets.pro}
begin {main}
clrscr;
write(space14);
writeln(title);
gotoxy(22,8);
writeln('Address of "draw2" is :',addr(draw2));
gotoxy(18,10);
write('Enter Starting POINT position (x y) : ');
readln(x,y);
lores80;
randomize;
for count2 := 1 to 4 do
begin
sets(0);
for count := 1 to 300 do
begin
point(x,y);
saveX[count] := x; saveY[count] := y;
x := random(160); y := random(72);
delay(15)
end; {count}
sets(1);
for count := 1 to 300 do
begin
point(saveX[count],saveY[count]);
delay(15)
end {count}
end; {count2}
for y := 30 to 32 do
begin
for x := 0 to 159 do
begin
sets(0); point(x,y); delay(5);
sets(1); point(x,y); delay(5)
end; {x}
for x := 159 downto 0 do
begin
sets(0); point(x,y); delay(5);
sets(1); point(x,y); delay(5)
end {x}
end; {y}
sets(0); point(80,36);
write(^G);
repeat until keypressed;
clrscr; {replace chr(128) with chr(32)}
normal;
writeln(^G)
end {main}.