source: trunk/Forms/FormCpu.pas

Last change on this file was 2, checked in by chronos, 14 months ago
  • Added: Initial development version.
File size: 876 bytes
Line 
1unit FormCpu;
2
3interface
4
5uses
6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ValEdit,
7 ExtCtrls, CpuZ80;
8
9type
10
11 { TFormCpu }
12
13 TFormCpu = class(TForm)
14 GroupBox1: TGroupBox;
15 TimerUpdate: TTimer;
16 ValueListEditor1: TValueListEditor;
17 procedure TimerUpdateTimer(Sender: TObject);
18 public
19 Cpu: TCpuZ80;
20 end;
21
22implementation
23
24{$R *.lfm}
25
26{ TFormCpu }
27
28procedure TFormCpu.TimerUpdateTimer(Sender: TObject);
29begin
30 ValueListEditor1.Values['A'] := IntToHex(Cpu.A, 2);
31 ValueListEditor1.Values['BC'] := IntToHex(Cpu.BC.Value, 4);
32 ValueListEditor1.Values['DE'] := IntToHex(Cpu.DE.Value, 4);
33 ValueListEditor1.Values['HL'] := IntToHex(Cpu.HL.Value, 4);
34 ValueListEditor1.Values['PC'] := IntToHex(Cpu.PC, 4);
35 ValueListEditor1.Values['SP'] := IntToHex(Cpu.SP, 4);
36 ValueListEditor1.Values['Ticks'] := IntToStr(Cpu.Ticks);
37end;
38
39end.
40
Note: See TracBrowser for help on using the repository browser.