Mám jednoduchý dotaz...
Můžu brát tohle jako simulaci sériovyho portu v Turbo Pascalu?
Kód:
uses CRT;
var h,z,d,q:integer;
procedure op;
begin
z:=h-d;
write('_');
if z>0 then write ('±');
if z<0 then
begin
write (' ');
z:=h+d;
end;
d:=trunc(d/2);
end;
procedure tisk;
begin
d:=128;
writeln ('Zadej cislo (dekadicky, od 0 do 255):');
readln (h);
repeat op until d=0;
writeln;
writeln ('Znovu? 1-ano/2-ne');
readln (q);
if q=2 then exit else tisk;
end;
begin
clrscr;
tisk;
end.