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

return address.

git-svn-id: trunk@25799 -
This commit is contained in:
nickysn 2013-10-16 09:32:55 +00:00
parent 814e1297ed
commit 1c53d24743

View File

@ -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]