mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-21 22:56:03 +02:00
* in the nasm writer, only output a segment prefix for the [si] operand, in
case there's a segment operand, different that DS (the default source segment) for parameterized x86 string instructions git-svn-id: trunk@37459 -
This commit is contained in:
parent
a8232ac477
commit
acfa199b09
@ -991,7 +991,8 @@ interface
|
|||||||
writer.AsmWrite(#9#9);
|
writer.AsmWrite(#9#9);
|
||||||
i:=get_x86_string_op_si_param(fixed_opcode);
|
i:=get_x86_string_op_si_param(fixed_opcode);
|
||||||
if (i<>-1) and (taicpu(hp).oper[i]^.typ=top_ref) and
|
if (i<>-1) and (taicpu(hp).oper[i]^.typ=top_ref) and
|
||||||
(taicpu(hp).oper[i]^.ref^.segment<>NR_NO) then
|
(taicpu(hp).oper[i]^.ref^.segment<>NR_NO) and
|
||||||
|
(taicpu(hp).oper[i]^.ref^.segment<>NR_DS) then
|
||||||
writer.AsmWrite(std_regname(taicpu(hp).oper[i]^.ref^.segment)+' ');
|
writer.AsmWrite(std_regname(taicpu(hp).oper[i]^.ref^.segment)+' ');
|
||||||
for i:=0 to taicpu(hp).ops-1 do
|
for i:=0 to taicpu(hp).ops-1 do
|
||||||
if taicpu(hp).oper[i]^.typ=top_ref then
|
if taicpu(hp).oper[i]^.typ=top_ref then
|
||||||
|
Loading…
Reference in New Issue
Block a user