Browse Source

+ added CPU 286 nasm directive to the i8086 assembly output in order to catch 386+ instructions; the RTL now compiles without generating any 386+ instructions

git-svn-id: branches/i8086@24010 -
nickysn 12 years ago
parent
commit
e16e08b2b6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/x86/agx86nsm.pas

+ 1 - 0
compiler/x86/agx86nsm.pas

@@ -1038,6 +1038,7 @@ interface
 {$endif}
 {$ifdef i8086}
       AsmWriteLn('BITS 16');
+      AsmWriteLn('CPU 286');
 {$else i8086}
       AsmWriteLn('BITS 32');
 {$endif i8086}