home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 September
/
Chip_2002-09_cd1.bin
/
zkuste
/
delphi
/
kompon
/
d123456
/
STR_BIT.ZIP
/
32
/
AKF
/
Main.pas
< prev
Wrap
Pascal/Delphi Source File
|
2002-07-04
|
1KB
|
59 lines
unit Main;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
TeeProcs, TeEngine, Chart, StdCtrls, Buttons, ExtCtrls, Series;
type
TForm1 = class(TForm)
Panel1: TPanel;
VidPosl: TEdit;
Label1: TLabel;
BitBtn1: TBitBtn;
Chart1: TChart;
Series1: TLineSeries;
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
uses strbit32;
procedure TForm1.BitBtn1Click(Sender: TObject);
Var Regb1, Regb2, Regb3 : TStr_Bit;
PrBit : byte; I, Razm, ZnAKF : Integer;
begin
// ┬Γσ±≥Φ Σαφφ√σ Σδ ≡α±±≈σ≥α
Regb1 := TStr_Bit.Create;
Regb2 := TStr_Bit.Create;
Regb3 := TStr_Bit.Create;
Regb1.Init_Sim(VidPosl.Text);
Regb2.Init_Sim(VidPosl.Text);
With Chart1 do begin
Series1.Clear; {╧εΣπε≥εΓΦ≥ⁿ ∩εδσ Σδ ∩ε±≥≡εσφΦ Σαφφ√⌡}
Razm := Regb1.Size;
For i := 0 to Razm do begin
Regb3.Copy( Regb2, 0, Razm);
Regb3.Mod2(Regb1);
ZnAKF := Razm - (2 * Regb3.Kol_ed);
Series1.Add( ZnAKF , IntTostr(i) , clTeeColor );
PrBit := Regb1[0];
Regb1.LastBitDisplase(PrBit);
end; end;
Regb1.Free; Regb2.Free; Regb3.Free;
end;
end.