Browse Source

* fixed typo (bug) in i8086 get_pc_addr. Use SP instead of BP to obtain the
return address.

git-svn-id: trunk@25799 -

nickysn 12 years ago
parent
commit
1c53d24743
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/i8086/i8086.inc

+ 1 - 1
rtl/i8086/i8086.inc

@@ -63,7 +63,7 @@ end;
 {$define FPC_SYSTEM_HAS_GET_PC_ADDR}
 Function Get_pc_addr : CodePointer;assembler;nostackframe;
 asm
-  mov bx, bp
+  mov bx, sp
   mov ax, ss:[bx]
 {$ifdef FPC_X86_CODE_FAR}
   mov dx, ss:[bx+2]