mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 14:09:17 +02:00
* optimized version of Ptr() for i8086
git-svn-id: trunk@25800 -
This commit is contained in:
parent
1c53d24743
commit
aa9fe36fd3
@ -27,11 +27,9 @@ end;
|
|||||||
{$define FPC_SYSTEM_HAS_PTR}
|
{$define FPC_SYSTEM_HAS_PTR}
|
||||||
function Ptr(sel,off: LongInt):farpointer;{$ifdef SYSTEMINLINE}inline;{$endif}assembler;nostackframe;
|
function Ptr(sel,off: LongInt):farpointer;{$ifdef SYSTEMINLINE}inline;{$endif}assembler;nostackframe;
|
||||||
asm
|
asm
|
||||||
push bp
|
mov si, sp
|
||||||
mov bp, sp
|
mov ax, ss:[si + 4 + extra_param_offset] // off
|
||||||
mov ax, ss:[bp + 4 + extra_param_offset] // off
|
mov dx, ss:[si + 8 + extra_param_offset] // sel
|
||||||
mov dx, ss:[bp + 8 + extra_param_offset] // sel
|
|
||||||
pop bp
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$define FPC_SYSTEM_HAS_CSEG}
|
{$define FPC_SYSTEM_HAS_CSEG}
|
||||||
|
Loading…
Reference in New Issue
Block a user