Browse Source

* made the \325 x86 prefix to generate a 0x66 prefix on i8086, thus fixing many
32-bit instructions on i8086, when using the internal obj writer

git-svn-id: trunk@32890 -

nickysn 9 years ago
parent
commit
ef9504ffd7
1 changed files with 13 additions and 3 deletions
  1. 13 3
      compiler/x86/aasmcpu.pas

+ 13 - 3
compiler/x86/aasmcpu.pas

@@ -2336,9 +2336,14 @@ implementation
               end;
             &312,
             &323,
-            &325,
             &327,
             &331,&332: ;
+            &325:
+{$ifdef i8086}
+              inc(len)
+{$endif i8086}
+              ;
+
             &333:
               begin
                 inc(len);
@@ -3150,8 +3155,13 @@ implementation
 {$endif x86_64}
                 end;
               end;
-            &323,
-            &325 : {no action needed};
+            &323 : {no action needed};
+            &325:
+{$ifdef i8086}
+              write0x66prefix;
+{$else i8086}
+              {no action needed};
+{$endif i8086}
 
             &324,
             &361: