Реферат: Разработка игровой программы на языке программирования Turbo Pascal
While Port[$3DA] and 8<>0 do;
end;
END.
UNIT SiegeLogo;
INTERFACE
Uses Buttons, VGA13h;
Type
PFont = ^TFont;
TFont = Array [0..255,0..7] of Byte;
Var
Font:PFont;
Procedure DrawString(Base:Word;xp,yp:Integer;Const s:String); Function Logo:Byte;
Procedure Info;
Procedure Story;
IMPLEMENTATION
Procedure DrawString;
Var
x,y,l,t:Byte;
begin
if Byte(s[0])>0 then
begin
for l:=1 to Byte(s[0]) do
begin
for y:=0 to 7 do
begin
t:=Font^[Byte(s[l])][y];
for x:=0 to 7 do
begin
if t and 128=128 then PutPixel(Base,xp+x,yp+y,15);