home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
USCX
/
TURBO-04.ZIP
/
WRITEXY.INC
< prev
Wrap
Text File
|
1985-03-08
|
802b
|
23 lines
Procedure Writexy(long_string:maxstr; xcoord,ycoord,color: integer);
{for monochrome, change to $B000 -- N.J.R}
{====}
var screen_array: Array[1..4000] of byte Absolute $B800:$0000;
scr_pos,str_len, real_pos: integer; {====}
begin
{$I-}
str_len:=length(long_string);
scr_pos:=0;
for real_pos:=1 to str_len do
if scr_pos < 4001 then
begin
scr_pos:=((xcoord*2)-1)+(ycoord*160);
screen_array[scr_pos]:=ord(copy(long_string,real_pos,1));
screen_array[scr_pos+1]:=color;
xcoord:=xcoord+1;
end
{$I+}
end;