Browse Source

* compilation of i8086 rtl fixed (seems like the fpc asm reader doesn't support 16-bit LEA, so hardcode it with DB for now)

git-svn-id: trunk@25806 -
nickysn 11 years ago
parent
commit
9be15583af
1 changed files with 3 additions and 1 deletions
  1. 3 1
      rtl/i8086/setjump.inc

+ 3 - 1
rtl/i8086/setjump.inc

@@ -25,7 +25,9 @@ asm
   mov ax, word ss:[si + 2]
   mov word [bx + Jmp_buf.cs], ax
 {$endif FPC_X86_CODE_FAR}
-  lea ax, [si + 4 + extra_param_offset]
+  // the fpc inline asm reader doesn't support 16-bit LEA it seems...
+  // lea ax, [si + 4 + extra_param_offset]
+  db 08Dh, 044h, 4 + extra_param_offset
   mov word [bx + Jmp_buf.sp], ax
 
   xor ax, ax