浏览代码

* use 16-bit LEA directly in fpc_SetJmp, since that instruction is now supported
by the compiler

git-svn-id: trunk@25809 -

nickysn 12 年之前
父节点
当前提交
f30fddec53
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      rtl/i8086/setjump.inc

+ 1 - 3
rtl/i8086/setjump.inc

@@ -25,9 +25,7 @@ asm
   mov ax, word ss:[si + 2]
   mov ax, word ss:[si + 2]
   mov word [bx + Jmp_buf.cs], ax
   mov word [bx + Jmp_buf.cs], ax
 {$endif FPC_X86_CODE_FAR}
 {$endif FPC_X86_CODE_FAR}
-  // 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
+  lea ax, [si + 4 + extra_param_offset]
   mov word [bx + Jmp_buf.sp], ax
   mov word [bx + Jmp_buf.sp], ax
 
 
   xor ax, ax
   xor ax, ax