mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-08 11:26:01 +02:00
+ add the ports[] access to the go32v2 system unit as well
git-svn-id: trunk@39423 -
This commit is contained in:
parent
62fe6cb5d3
commit
db0b6adef8
@ -16,14 +16,23 @@
|
||||
|
||||
unit ports;
|
||||
|
||||
{$inline ON}
|
||||
|
||||
interface
|
||||
|
||||
{$I portsh.inc}
|
||||
{ Since this platform has port access built into the System unit, this unit just
|
||||
creates aliases, for compatibility for programs, that already use the ports
|
||||
unit. }
|
||||
|
||||
type
|
||||
tport = System.tport;
|
||||
tportw = System.tportw;
|
||||
tportl = System.tportl;
|
||||
|
||||
var
|
||||
port : tport absolute System.port;
|
||||
portb : tport absolute System.portb;
|
||||
portw : tportw absolute System.portw;
|
||||
portl : tportl absolute System.portl;
|
||||
|
||||
implementation
|
||||
|
||||
{$I ports.inc}
|
||||
|
||||
end.
|
||||
|
@ -32,6 +32,7 @@ interface
|
||||
{ include system-independent routine headers }
|
||||
|
||||
{$I systemh.inc}
|
||||
{$I portsh.inc}
|
||||
|
||||
|
||||
const
|
||||
@ -157,6 +158,7 @@ implementation
|
||||
{ include system independent routines }
|
||||
|
||||
{$I system.inc}
|
||||
{$I ports.inc}
|
||||
|
||||
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user