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/UCore.pas

    r216 r220  
    1616    AHelp: TAction;
    1717    ADisassembler: TAction;
    18     AConsole: TAction;
    1918    ACpu: TAction;
    20     AScreen: TAction;
     19    ADevices: TAction;
    2120    ARunToCursor: TAction;
    2221    AStop: TAction;
     
    3130    ImageList1: TImageList;
    3231    procedure ACompileExecute(Sender: TObject);
    33     procedure AConsoleExecute(Sender: TObject);
    3432    procedure ACpuExecute(Sender: TObject);
     33    procedure ADevicesExecute(Sender: TObject);
    3534    procedure ADisassemblerExecute(Sender: TObject);
    3635    procedure AExitExecute(Sender: TObject);
    3736    procedure AHelpExecute(Sender: TObject);
    3837    procedure ARunExecute(Sender: TObject);
    39     procedure AScreenExecute(Sender: TObject);
    4038    procedure AStopExecute(Sender: TObject);
    4139    procedure DataModuleCreate(Sender: TObject);
     
    6058uses
    6159  UFormScreen, UFormCpu, UFormAssembler, UFormConsole, UFormHelp,
    62   UFormDisassembler, UFormMessages;
     60  UFormDisassembler, UFormMessages, UFormDevices;
    6361
    6462{ TCore }
     
    7876  ACompile.Execute;
    7977  Machine.PowerOn;
    80 end;
    81 
    82 procedure TCore.AScreenExecute(Sender: TObject);
    83 begin
    84   FormScreen.Screen := Machine.Screen;
    85   FormScreen.Show;
    8678end;
    8779
     
    120112end;
    121113
    122 procedure TCore.AConsoleExecute(Sender: TObject);
    123 begin
    124   FormConsole.Console := Machine.Console;
    125   FormConsole.Show;
    126 end;
    127 
    128114procedure TCore.ACpuExecute(Sender: TObject);
    129115begin
    130116  FormCpu.Cpu := Machine.Cpu;
    131117  FormCpu.Show;
     118end;
     119
     120procedure TCore.ADevicesExecute(Sender: TObject);
     121begin
     122  FormDevices.Devices := Machine.Devices;
     123  FormDevices.Show;
    132124end;
    133125
Note: See TracChangeset for help on using the changeset viewer.