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
/
MBUG099.ARC
/
DOT2.I
< prev
next >
Wrap
Text File
|
1979-12-31
|
640b
|
21 lines
Procedure Dot(X,Y : Integer; F : Operation);
var
PCG, Bit, Line : Byte;
Change : Integer;
Begin
if ((X<0) or (X>511) or (Y<0) or (Y>255)) then Exit;
PCG := Mem[$F3C0 - (Y Div 16) * 64 + X Div 8];
Bit := 1 Shl (7 - (X Mod 8));
Line := 15 - Y Mod 16;
Port[28] := 135 - Y Div 32;
Change := PCG * 16 + $F000 + Line;
Case F of
ResDot : Mem[Change] := Mem[Change] and not Bit;
SetDot : Mem[Change] := Mem[Change] or Bit;
InvDot : Mem[Change] := Mem[Change] xor Bit;
end;
Port[28] := 128;
End;