Ignore:
Timestamp:
Feb 9, 2012, 3:22:38 PM (13 years ago)
Author:
chronos
Message:
  • Modified: Interpretter now wait for key press if Read instruction is executed and no input character is available.
  • Added: Actions to control program executions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UInterpreterForm.pas

    r5 r6  
    3636    Splitter2: TSplitter;
    3737    Timer1: TTimer;
     38    ToolBar1: TToolBar;
     39    ToolButton1: TToolButton;
     40    ToolButton2: TToolButton;
     41    ToolButton3: TToolButton;
    3842    procedure ListViewMemoryData(Sender: TObject; Item: TListItem);
     43    procedure MemoInputKeyPress(Sender: TObject; var Key: char);
    3944    procedure Timer1Timer(Sender: TObject);
    4045  private
     
    4247  public
    4348    procedure RefreshListViewMemory;
     49    procedure UpadateInterface;
    4450  end;
    4551
     
    7177end;
    7278
     79procedure TInterpreterForm.UpadateInterface;
     80begin
     81  MainForm.UpdateInterface;
     82end;
     83
    7384procedure TInterpreterForm.ListViewMemoryData(Sender: TObject; Item: TListItem);
    7485var
     
    8697end;
    8798
     99procedure TInterpreterForm.MemoInputKeyPress(Sender: TObject; var Key: char);
     100begin
     101  with MainForm.BrainFuckInterpreter do Input := Input + Key;
     102end;
     103
    88104end.
    89105
Note: See TracChangeset for help on using the changeset viewer.