Ignore:
Timestamp:
Oct 20, 2020, 1:10:09 AM (4 years ago)
Author:
chronos
Message:
  • Added: Devices form with tree view of connected devices. Device control form can be opened by double click.
  • Modifid: IN/OUT instructions now use also device group index to directly specify which device should be read/written.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CpuSingleSize/Forms/UFormConsole.pas

    r216 r220  
    1313  { TFormConsole }
    1414
    15   TFormConsole = class(TForm)
     15  TFormConsole = class(TFormDevice)
    1616    MemoConsole: TMemo;
    1717    Timer1: TTimer;
     
    2020    procedure MemoConsoleKeyPress(Sender: TObject; var Key: char);
    2121    procedure Timer1Timer(Sender: TObject);
    22   private
    23 
     22  protected
     23    function GetDevice: TDevice; override;
     24    procedure SetDevice(AValue: TDevice); override;
    2425  public
    2526    Console: TConsole;
     
    5556end;
    5657
     58function TFormConsole.GetDevice: TDevice;
     59begin
     60  Result := Console;
     61end;
     62
     63procedure TFormConsole.SetDevice(AValue: TDevice);
     64begin
     65  if AValue is TConsole then
     66    Console := TConsole(AValue);
     67end;
     68
    5769procedure TFormConsole.MemoConsoleKeyPress(Sender: TObject; var Key: char);
    5870begin
Note: See TracChangeset for help on using the changeset viewer.