source: branches/simple/Devices/Storage.pas

Last change on this file was 42, checked in by chronos, 10 months ago
  • Modified: Improved simple virtual machine.
File size: 606 bytes
Line 
1unit Storage;
2
3interface
4
5uses
6 Classes, SysUtils, Device, Channel;
7
8type
9 TStorage8 = class(TDevice8)
10
11 end;
12
13 TStorage16 = class(TDevice16)
14
15 end;
16
17 { TStorage }
18
19 TStorage = class(TDevice)
20 BitWidth: TBitWidth;
21 Storage8: TStorage8;
22 Storage16: TStorage16;
23 constructor Create(BitWidth: TBitWidth; Storage8: TStorage8; Storage16: TStorage16);
24 end;
25
26implementation
27
28{ TStorage }
29
30constructor TStorage.Create(BitWidth: TBitWidth; Storage8: TStorage8;
31 Storage16: TStorage16);
32begin
33 Self.BitWidth := BitWidth;
34 Self.Storage8 := Storage8;
35 Self.Storage16 := Storage16;
36end;
37
38end.
39
Note: See TracBrowser for help on using the repository browser.