Explorar o código

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

git-svn-id: trunk@25799 -

nickysn %!s(int64=12) %!d(string=hai) anos
pai
achega
1c53d24743
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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]