Browse Source

* regvars problem fixed

marco 20 years ago
parent
commit
b5114bfed2
1 changed files with 6 additions and 9 deletions
  1. 6 9
      rtl/unix/x86.pp

+ 6 - 9
rtl/unix/x86.pp

@@ -232,25 +232,21 @@ function ReadPortB (Port : Longint): Byte; assembler;
 }
 }
 
 
 asm
 asm
-  xorl %eax,%eax
   movl port,%edx
   movl port,%edx
+  xorl %eax,%eax
   inb %dx,%al
   inb %dx,%al
 end ['EAX','EDX'];
 end ['EAX','EDX'];
 
 
-
-
 function ReadPortW (Port : Longint): Word; assembler;
 function ReadPortW (Port : Longint): Word; assembler;
 {
 {
   Reads a word from port 'Port'
   Reads a word from port 'Port'
 }
 }
 asm
 asm
-  xorl %eax,%eax
   movl port,%edx
   movl port,%edx
+  xorl %eax,%eax
   inw %dx,%ax
   inw %dx,%ax
 end ['EAX','EDX'];
 end ['EAX','EDX'];
 
 
-
-
 function ReadPortL (Port : Longint): LongInt; assembler;
 function ReadPortL (Port : Longint): LongInt; assembler;
 {
 {
   Reads a LongInt from port 'Port'
   Reads a LongInt from port 'Port'
@@ -260,8 +256,6 @@ asm
   inl %dx,%eax
   inl %dx,%eax
 end ['EAX','EDX'];
 end ['EAX','EDX'];
 
 
-
-
 Procedure ReadPortL (Port : Longint; Var Buf; Count: longint);
 Procedure ReadPortL (Port : Longint; Var Buf; Count: longint);
 {
 {
   Reads 'Count' longints from port 'Port' to 'Buf'.
   Reads 'Count' longints from port 'Port' to 'Buf'.
@@ -330,7 +324,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.3  2004-04-12 10:31:58  marco
+  Revision 1.4  2005-02-05 08:42:24  marco
+   * regvars problem fixed
+
+  Revision 1.3  2004/04/12 10:31:58  marco
    * ioperm/iopl added from linuxold. Untested but will probably work
    * ioperm/iopl added from linuxold. Untested but will probably work
 
 
 }
 }