1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00

Fixed LoadAAt().

This commit is contained in:
acqn 2021-03-13 14:31:23 +08:00 committed by Oliver Schmidt
parent bd5d5b7385
commit 4376b83390

View File

@ -2614,7 +2614,7 @@ static int LoadAAt (CodeSeg* S, int Idx, const LoadRegInfo* LRI, Collection* Ind
if (Use == REG_X) {
X = NewCodeEntry (OP65_TXA, AM65_IMP, 0, 0, E->LI);
CS_InsertEntry (S, X, Idx++);
} else if (Use == REG_A) {
} else if (Use == REG_Y) {
X = NewCodeEntry (OP65_TYA, AM65_IMP, 0, 0, E->LI);
CS_InsertEntry (S, X, Idx++);
} else if (Use == REG_A) {