mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 05:59:28 +02:00
+ added extra_param_offset constant for accessing parameters in asm routines with nostackframe
git-svn-id: trunk@24873 -
This commit is contained in:
parent
980563d576
commit
5d4ebf0dca
@ -83,6 +83,15 @@ implementation
|
||||
const
|
||||
fCarry = 1;
|
||||
|
||||
{ used for an offset fixup for accessing the proc parameters in asm routines
|
||||
that use nostackframe. We can't use the parameter name directly, because
|
||||
i8086 doesn't support sp relative addressing. }
|
||||
{$ifdef FPC_X86_CODE_FAR}
|
||||
extra_param_offset = 2;
|
||||
{$else FPC_X86_CODE_FAR}
|
||||
extra_param_offset = 0;
|
||||
{$endif FPC_X86_CODE_FAR}
|
||||
|
||||
type
|
||||
PFarByte = ^Byte;far;
|
||||
PFarChar = ^Char;far;
|
||||
|
Loading…
Reference in New Issue
Block a user