|
@@ -16,27 +16,24 @@
|
|
|
|
|
|
unit ports;
|
|
|
|
|
|
-{ this unit uses classes so
|
|
|
- ObjFpc mode is required PM }
|
|
|
-{$Mode ObjFpc}
|
|
|
{$Calling StdCall}
|
|
|
|
|
|
interface
|
|
|
|
|
|
type
|
|
|
- tport = class
|
|
|
+ tport = object
|
|
|
procedure writeport(p : word;data : byte);
|
|
|
function readport(p : word) : byte;
|
|
|
property pp[w : word] : byte read readport write writeport;default;
|
|
|
end;
|
|
|
|
|
|
- tportw = class
|
|
|
+ tportw = object
|
|
|
procedure writeport(p : word;data : word);
|
|
|
function readport(p : word) : word;
|
|
|
property pp[w : word] : word read readport write writeport;default;
|
|
|
end;
|
|
|
|
|
|
- tportl = class
|
|
|
+ tportl = object
|
|
|
procedure writeport(p : word;data : longint);
|
|
|
function readport(p : word) : longint;
|
|
|
property pp[w : word] : longint read readport write writeport;default;
|