mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 17:10:20 +02:00
* 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:
parent
814e1297ed
commit
1c53d24743
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user