+ integrated the port access via Port[] in the i8086-msdos system unit to ease

porting TP7 code. The ports unit also remains for compatibility with code that
  has already been ported to FPC.

git-svn-id: trunk@39422 -
This commit is contained in:
nickysn 2018-07-09 15:40:12 +00:00
parent 8e6205aca6
commit 62fe6cb5d3
2 changed files with 17 additions and 5 deletions

View File

@ -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.

View File

@ -32,6 +32,7 @@ interface
{$I systemh.inc}
{$I tnyheaph.inc}
{$I portsh.inc}
const
LineEnding = #13#10;
@ -265,6 +266,8 @@ Procedure SysInitFPU;
{$I tinyheap.inc}
{$I ports.inc}
procedure DebugWrite(const S: string);
begin
asm