home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 18
/
CD_ASCQ_18_111294_W.iso
/
dos
/
prg
/
pas
/
pasgraph
/
copper2.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-08-20
|
1KB
|
49 lines
{$A+,B-,D-,E-,F-,G+,I-,L-,N-,O-,R-,S-,V-,X-} { For TP 6.0 }
Program RedBar;
Uses Crt;
Var
C: Byte;
C2,C3,C4: Word;
SinTab: array[0..127] of Word;
HeadPtr: Word absolute $40:$1A;
TailPtr: Word Absolute $40:$1C;
Zaehler: Word;
Begin
For C:=0 to 127 do SinTab[C]:=Trunc((Sin((2*Pi/128)*C)+1)*135);
C3:=0;
Repeat
Inline($FA); {CLI}
Repeat Until (Port[$3DA] and 8)>0;
Repeat Until (Port[$3DA] and 8)=0;
For C4:=0 to SinTab[C3 and 127] do Begin
Repeat Until (Port[$3DA] and 1)=0;
Repeat Until (Port[$3DA] and 1)>0;
End;
For C:=0 to 63 do Begin
Repeat Until (Port[$3DA] and 1)>0;
Port[$3C8]:=0;
Port[$3C9]:=C;
Port[$3C9]:=0;
Port[$3C9]:=0;
Repeat Until (Port[$3DA] and 1)=0;
End;
For C:=63 downTo 0 do Begin
Repeat Until (Port[$3DA] and 1)>0;
Port[$3C8]:=0;
Port[$3C9]:=C;
Port[$3C9]:=0;
Port[$3C9]:=0;
Repeat Until (Port[$3DA] and 1)=0;
End;
Inc(C3);
Inline($FB); {STI}
Until HeadPtr<>TailPtr;
HeadPtr:=TailPtr;
Port[$3C8]:=0;
Port[$3C9]:=0;
Port[$3C9]:=0;
Port[$3C9]:=0;
End.