* there can be a tai_stab between lock/rep and the next opcode

git-svn-id: trunk@8716 -
This commit is contained in:
peter 2007-10-01 19:23:49 +00:00
parent 9f0ca44c94
commit 1e28adac60

View File

@ -703,8 +703,12 @@ implementation
(taicpu(hp).opcode = A_REPNE)) then
Begin
prefix:=std_op2str[taicpu(hp).opcode]+#9;
hp:=tai(hp.next);
{ this is theorically impossible... }
{ there can be a stab inbetween when the opcode was on
a different line in the source code }
repeat
hp:=tai(hp.next);
until (hp=nil) or (hp.typ=ait_instruction);
{ this is theorically impossible... }
if hp=nil then
begin
AsmWriteLn(#9#9+prefix);