Ignore:
Timestamp:
May 1, 2019, 11:39:27 PM (6 years ago)
Author:
chronos
Message:
  • Added: Partial implementation of compiler to Pascal source.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/virtualcpu4/Forms/UFormMain.pas

    r185 r186  
    1515  TFormMain = class(TForm)
    1616    ButtonAssembler: TButton;
     17    ButtonCompilerPascal: TButton;
    1718    ButtonClearMemory: TButton;
    1819    ButtonScreen: TButton;
     
    2526    procedure ButtonAssemblerClick(Sender: TObject);
    2627    procedure ButtonClearMemoryClick(Sender: TObject);
     28    procedure ButtonCompilerPascalClick(Sender: TObject);
    2729    procedure ButtonConsoleClick(Sender: TObject);
    2830    procedure ButtonCpuStateClick(Sender: TObject);
     
    5254uses
    5355  UFormDisassembler, UFormMemory, UFormCpuState, UFormScreen, UFormConsole,
    54   UFormAssembler;
     56  UFormAssembler, UFormCompilerPascal;
    5557
    5658{ TFormMain }
     
    116118begin
    117119  Machine.ClearMemory;
     120end;
     121
     122procedure TFormMain.ButtonCompilerPascalClick(Sender: TObject);
     123begin
     124  if not Assigned(FormCompilerPascal) then
     125    FormCompilerPascal := TFormCompilerPascal.Create(Self);
     126  FormCompilerPascal.CompilerPascal.Reader.Cpu := Machine.Cpu;
     127  FormCompilerPascal.Show;
    118128end;
    119129
Note: See TracChangeset for help on using the changeset viewer.