mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 02:10:19 +02:00
* i8086: Fixed referencing using BP and SP as base when FAR or HUGE memory model is used.
git-svn-id: trunk@45846 -
This commit is contained in:
parent
b1b9d1f341
commit
34a5dfc885
@ -292,8 +292,14 @@ implementation
|
||||
ref.segment:=NR_GS;
|
||||
x86pt_far,
|
||||
x86pt_huge:
|
||||
if reg<>NR_NO then
|
||||
ref.segment:=cg.GetNextReg(reg);
|
||||
if getsupreg(reg)>=first_int_imreg then
|
||||
ref.segment:=cg.GetNextReg(reg)
|
||||
else
|
||||
if reg<>NR_NO then
|
||||
if (reg=current_procinfo.framepointer) or (reg=NR_SP) then
|
||||
ref.segment:=NR_SS
|
||||
else
|
||||
internalerror(2020072401);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user