Changeset 14 for trunk/UMainForm.pas


Ignore:
Timestamp:
Feb 11, 2012, 6:27:10 PM (13 years ago)
Author:
chronos
Message:
  • Added: Support for memory cell up to Integer size. Default 256.
  • Fixed: Application now can be closed if running program is waiting to new key press.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMainForm.pas

    r13 r14  
    77uses
    88  Classes, SysUtils, FileUtil, SynEdit, Forms, Controls, Graphics, Dialogs,
    9   Menus, ActnList, StdCtrls, ComCtrls, UBrainFuck;
     9  Menus, ActnList, StdCtrls, ComCtrls, UBrainFuck, SpecializedList;
    1010
    1111type
     
    107107    BrainFuckCompiler: TBrainFuckCompiler;
    108108    BrainFuckInterpreter: TBrainFuckInterpretter;
     109    BreakPoints: TListInteger;
    109110    procedure UpdateInterface;
    110111    procedure UpdateStatusBar;
     
    185186procedure TMainForm.FormCreate(Sender: TObject);
    186187begin
     188  BreakPoints := TListInteger.Create;
    187189  BrainFuckInterpreter := TBrainFuckInterpretter.Create;
    188190  BrainFuckInterpreter.OnChangeState := BrainFuckInterpreterChangeState;
     
    194196  BrainFuckCompiler.Free;
    195197  BrainFuckInterpreter.Free;
     198  BreakPoints.Free;
    196199end;
    197200
     
    226229procedure TMainForm.AOptionsExecute(Sender: TObject);
    227230begin
     231  OptionsForm.LoadFromInterpretter(BrainFuckInterpreter);
    228232  if OptionsForm.ShowModal = mrOK then begin
    229 
     233    OptionsForm.SaveToInterpretter(BrainFuckInterpreter);
    230234  end;
    231235end;
Note: See TracChangeset for help on using the changeset viewer.