mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
Fixed a problem with local variables (stack offset for RHS was not corrected).
git-svn-id: svn://svn.cc65.org/cc65/trunk@4070 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
53372ae1c1
commit
c741f06ac1
@ -339,6 +339,16 @@ static void AdjustStackOffset (StackOpData* D, unsigned Offs)
|
|||||||
/* Next entry */
|
/* Next entry */
|
||||||
++I;
|
++I;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If we have rhs load insns that load from stack, we'll have to adjust
|
||||||
|
* the offsets for these also.
|
||||||
|
*/
|
||||||
|
if (D->Rhs.A.Flags & LI_RELOAD_Y) {
|
||||||
|
D->Rhs.A.Offs -= Offs;
|
||||||
|
}
|
||||||
|
if (D->Rhs.X.Flags & LI_RELOAD_Y) {
|
||||||
|
D->Rhs.X.Offs -= Offs;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user