Last change
on this file was 2, checked in by chronos, 16 months ago |
- Added: Initial development version.
|
File size:
876 bytes
|
Line | |
---|
1 | unit FormCpu;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ValEdit,
|
---|
7 | ExtCtrls, CpuZ80;
|
---|
8 |
|
---|
9 | type
|
---|
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 |
|
---|
22 | implementation
|
---|
23 |
|
---|
24 | {$R *.lfm}
|
---|
25 |
|
---|
26 | { TFormCpu }
|
---|
27 |
|
---|
28 | procedure TFormCpu.TimerUpdateTimer(Sender: TObject);
|
---|
29 | begin
|
---|
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);
|
---|
37 | end;
|
---|
38 |
|
---|
39 | end.
|
---|
40 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.