Changeset 223 for branches/CpuSingleSize/Forms
- Timestamp:
- Jul 12, 2022, 10:43:40 PM (2 years ago)
- Location:
- branches/CpuSingleSize/Forms
- Files:
-
- 1 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CpuSingleSize/Forms/UFormAssembler.lfm
r216 r223 9 9 DesignTimePPI = 144 10 10 OnShow = FormShow 11 LCLVersion = '2. 0.10.0'11 LCLVersion = '2.2.2.0' 12 12 inline SynEdit1: TSynEdit 13 13 Left = 16 … … 18 18 Color = clBlack 19 19 Font.Color = clWhite 20 Font.Height = 1 320 Font.Height = 16 21 21 Font.Name = 'Liberation Mono' 22 22 Font.Pitch = fpFixed … … 25 25 ParentFont = False 26 26 TabOrder = 0 27 Gutter.Width = 7727 Gutter.Width = 81 28 28 Gutter.MouseActions = <> 29 29 RightGutter.Width = 0 … … 481 481 end 482 482 object SynGutterLineNumber1: TSynGutterLineNumber 483 Width = 17483 Width = 21 484 484 MouseActions = <> 485 485 MarkupInfo.Background = clBtnFace -
branches/CpuSingleSize/Forms/UFormAssembler.pas
r216 r223 1 1 unit UFormAssembler; 2 3 {$mode delphi}4 2 5 3 interface -
branches/CpuSingleSize/Forms/UFormConsole.pas
r220 r223 1 1 unit UFormConsole; 2 3 {$mode delphi}4 2 5 3 interface … … 24 22 procedure SetDevice(AValue: TDevice); override; 25 23 public 26 Console: T Console;24 Console: TDeviceConsole; 27 25 end; 28 26 … … 63 61 procedure TFormConsole.SetDevice(AValue: TDevice); 64 62 begin 65 if AValue is T Console then66 Console := T Console(AValue);63 if AValue is TDeviceConsole then 64 Console := TDeviceConsole(AValue); 67 65 end; 68 66 … … 75 73 Console.Lock.Release; 76 74 end; 77 Console. Cpu.Interrupt(Console.InterruptVector);75 Console.PulseInterrupt; 78 76 end; 79 77 -
branches/CpuSingleSize/Forms/UFormCpu.pas
r216 r223 1 1 unit UFormCpu; 2 3 {$mode delphi}4 2 5 3 interface … … 49 47 I: Integer; 50 48 begin 51 if Item.Index * DataPerLine < Length(Cpu. Data) then begin49 if Item.Index * DataPerLine < Length(Cpu.Memory) then begin 52 50 Item.Caption := IntToHex(Item.Index * DataPerLine, 8); 53 51 Line := ''; 54 52 for I := 0 to DataPerLine - 1 do 55 Line := Line + IntToHex(Cpu. Data[Item.Index * DataPerLine + I], 4) + ' ';53 Line := Line + IntToHex(Cpu.Memory[Item.Index * DataPerLine + I], 4) + ' '; 56 54 Item.SubItems.Add(Line); 57 55 end; … … 63 61 if Item.Index = 0 then begin 64 62 Item.Caption := 'IP'; 65 Item.SubItems.Add(IntToHex(Cpu.I P, 8));63 Item.SubItems.Add(IntToHex(Cpu.InstructionPointer, 8)); 66 64 end else 67 65 if Item.Index = 1 then begin 68 66 Item.Caption := 'SP'; 69 Item.SubItems.Add(IntToHex(Cpu.S P, 8));67 Item.SubItems.Add(IntToHex(Cpu.StackPointer, 8)); 70 68 end else begin 71 69 Item.Caption := 'R' + IntToStr(Item.Index - 2); … … 77 75 procedure TFormCpu.Timer1Timer(Sender: TObject); 78 76 begin 79 ListViewMemory.Items.Count := Length(Cpu. Data) div DataPerLine;77 ListViewMemory.Items.Count := Length(Cpu.Memory) div DataPerLine; 80 78 ListViewMemory.Refresh; 81 79 ListViewRegs.Items.Count := Length(Cpu.R) + 2; -
branches/CpuSingleSize/Forms/UFormDevices.lfm
r220 r223 9 9 DesignTimePPI = 144 10 10 OnShow = FormShow 11 LCLVersion = '2. 0.10.0'11 LCLVersion = '2.2.2.0' 12 12 object TreeView1: TTreeView 13 13 Left = 16 -
branches/CpuSingleSize/Forms/UFormDevices.pas
r220 r223 1 1 unit UFormDevices; 2 3 {$mode delphi}4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, UMachine; 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, ExtCtrls, 7 UMachine; 9 8 10 9 type … … 35 34 const 36 35 DeviceClassFormClasses: array[TDeviceClass] of TFormDeviceClass = ( 37 nil, nil, nil, TFormStorage, TFormScreen, TFormConsole );36 nil, nil, nil, TFormStorage, TFormScreen, TFormConsole, nil); 38 37 39 38 { TFormDevices } … … 55 54 FormClass := DeviceClassFormClasses[Device.DeviceClass]; 56 55 if Assigned(FormClass) then begin 57 Device.Form := TFormDevice(FormClass.Create(nil));56 Device.Form := FormClass.Create(nil); 58 57 Device.Form.Device := Device; 59 58 Device.Form.Show; -
branches/CpuSingleSize/Forms/UFormDisassembler.pas
r216 r223 1 1 unit UFormDisassembler; 2 3 {$mode delphi}4 2 5 3 interface -
branches/CpuSingleSize/Forms/UFormHelp.pas
r216 r223 1 1 unit UFormHelp; 2 3 {$mode delphi}4 2 5 3 interface -
branches/CpuSingleSize/Forms/UFormMain.lfm
r220 r223 12 12 OnDestroy = FormDestroy 13 13 OnShow = FormShow 14 LCLVersion = '2. 0.10.0'14 LCLVersion = '2.2.2.0' 15 15 object ButtonLoad: TButton 16 16 Left = 24 -
branches/CpuSingleSize/Forms/UFormMain.pas
r220 r223 1 1 unit UFormMain; 2 3 {$mode delphi}{$H+}4 2 5 3 interface -
branches/CpuSingleSize/Forms/UFormMessages.lfm
r217 r223 8 8 ClientWidth = 1113 9 9 DesignTimePPI = 144 10 LCLVersion = '2. 0.10.0'10 LCLVersion = '2.2.2.0' 11 11 object ListView1: TListView 12 12 Left = 0 -
branches/CpuSingleSize/Forms/UFormMessages.pas
r217 r223 1 1 unit UFormMessages; 2 3 {$mode delphi}4 2 5 3 interface -
branches/CpuSingleSize/Forms/UFormScreen.lfm
r216 r223 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy 12 LCLVersion = '2. 0.10.0'12 LCLVersion = '2.2.2.0' 13 13 object PaintBox1: TPaintBox 14 14 Left = 8 -
branches/CpuSingleSize/Forms/UFormScreen.pas
r220 r223 1 1 unit UFormScreen; 2 3 {$mode delphi}4 2 5 3 interface … … 25 23 procedure SetDevice(AValue: TDevice); override; 26 24 public 27 Screen: T Screen;25 Screen: TDeviceScreen; 28 26 end; 29 27 … … 65 63 procedure TFormScreen.SetDevice(AValue: TDevice); 66 64 begin 67 if AValue is T Screen then68 Screen := T Screen(AValue);65 if AValue is TDeviceScreen then 66 Screen := TDeviceScreen(AValue); 69 67 end; 70 68 -
branches/CpuSingleSize/Forms/UFormStorage.lfm
r220 r223 8 8 ClientWidth = 1153 9 9 DesignTimePPI = 144 10 LCLVersion = '2. 0.10.0'10 LCLVersion = '2.2.2.0' 11 11 object ListView1: TListView 12 12 Left = 17 -
branches/CpuSingleSize/Forms/UFormStorage.pas
r220 r223 1 1 unit UFormStorage; 2 3 {$mode delphi}4 2 5 3 interface … … 18 16 procedure SetDevice(AValue: TDevice); override; 19 17 public 20 Storage: T Storage;18 Storage: TDeviceStorage; 21 19 end; 22 20 … … 37 35 procedure TFormStorage.SetDevice(AValue: TDevice); 38 36 begin 39 if AValue is T Storage then40 Storage := T Storage(AValue);37 if AValue is TDeviceStorage then 38 Storage := TDeviceStorage(AValue); 41 39 end; 42 40
Note:
See TracChangeset
for help on using the changeset viewer.