First post, by PlaneVuki
Hi,
I am experimenting with the following code in pascal to plot pixels in 640x350 16color mode
******************************
setgmode;
port[$3C4]:=2; port[$3C5]:=15; {select all planes, white pixel will be plotted}
port[$3CE]:=8; port[$3CF]:=128; { plotting 0-th pixel, upper left corner, mask others}
mem[$a000:0]:=255;
readkey;
port[$3C4]:=2; port[$3C5]:=15; {again white}
port[$3CE]:=8; port[$3CF]:=64; {plot second pixel, mask others}
mem[$a000:0]:=255;
readkey;
******************************
But after the readkey it plots the second pixel, but still overwrites first pixel to black (set it to 0).
What am I doing wrong ?
Thanks in advance.