+ added parameter 'hasofs' to ConcatConstSymbol. Will be used to support 'dd xx'

vs 'dd offset xx' being different on i8086.

git-svn-id: trunk@38148 -
This commit is contained in:
nickysn 2018-02-07 15:23:48 +00:00
parent 70038f1c0b
commit d591e698ac
3 changed files with 4 additions and 4 deletions

View File

@ -896,7 +896,7 @@ unit raatt;
begin
if constsize<>sizeof(pint) then
Message(asmr_w_32bit_const_for_address);
ConcatConstSymbol(curlist,asmsym,asmsymtyp,value,constsize)
ConcatConstSymbol(curlist,asmsym,asmsymtyp,value,constsize,true)
end
else
ConcatConstant(curlist,value,constsize);

View File

@ -198,7 +198,7 @@ Function AsmRegisterPara(sym: tabstractnormalvarsym): boolean;
Procedure ConcatLabel(p: TAsmList;var l : tasmlabel);
Procedure ConcatConstant(p : TAsmList;value: tcgint; constsize:byte);
Procedure ConcatConstSymbol(p : TAsmList;const sym:string;symtyp:tasmsymtype;l:tcgint;constsize:byte);
Procedure ConcatConstSymbol(p : TAsmList;const sym:string;symtyp:tasmsymtype;l:tcgint;constsize:byte;isofs:boolean);
Procedure ConcatRealConstant(p : TAsmList;value: bestreal; real_typ : tfloattype);
Procedure ConcatString(p : TAsmList;s:string);
procedure ConcatAlign(p:TAsmList;l:tcgint);
@ -1647,7 +1647,7 @@ Begin
end;
Procedure ConcatConstSymbol(p : TAsmList;const sym:string;symtyp:tasmsymtype;l:tcgint;constsize:byte);
Procedure ConcatConstSymbol(p : TAsmList;const sym:string;symtyp:tasmsymtype;l:tcgint;constsize:byte;isofs:boolean);
begin
p.concat(Tai_const.Createname(sym,l));
end;

View File

@ -2483,7 +2483,7 @@ Unit Rax86int;
end
else
{$endif i8086}
ConcatConstSymbol(curlist,asmsym,asmsymtyp,value,constsize);
ConcatConstSymbol(curlist,asmsym,asmsymtyp,value,constsize,hasofs);
end
else
ConcatConstant(curlist,value,constsize);