* check register type also for registers in references so we are

not mixing addressregisters and intregisters on m68k

git-svn-id: trunk@9128 -
This commit is contained in:
peter 2007-11-04 14:24:36 +00:00
parent 14f958682c
commit 263b7abc6f

View File

@ -1657,9 +1657,11 @@ unit rgobj;
if regtype in [R_INTREGISTER,R_ADDRESSREGISTER] then
with ref^ do
begin
if base<>NR_NO then
if (base<>NR_NO) and
(getregtype(base)=regtype) then
setsupreg(base,reginfo[getsupreg(base)].colour);
if index<>NR_NO then
if (index<>NR_NO) and
(getregtype(index)=regtype) then
setsupreg(index,reginfo[getsupreg(index)].colour);
end;
end;
@ -1669,7 +1671,8 @@ unit rgobj;
if regtype=R_INTREGISTER then
begin
so:=shifterop;
if so^.rs<>NR_NO then
if (so^.rs<>NR_NO) and
(getregtype(so^.rs)=regtype) then
setsupreg(so^.rs,reginfo[getsupreg(so^.rs)].colour);
end;
end;