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

clc should always be the insn before adc.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4020 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-08-15 16:00:30 +00:00
parent 15c420fd39
commit b4fda62df9

View File

@ -63,8 +63,8 @@ unsigned OptAdd1 (CodeSeg* S)
*
* ldy #xx-1
* lda (sp),y
* clc
* ldy #yy-3
* clc
* adc (sp),y
* pha
* ldy #xx
@ -108,13 +108,13 @@ unsigned OptAdd1 (CodeSeg* S)
X = NewCodeEntry (OP65_LDA, AM65_ZP_INDY, "sp", 0, L[1]->LI);
CS_InsertEntry (S, X, I+1);
/* clc */
X = NewCodeEntry (OP65_CLC, AM65_IMP, 0, 0, L[5]->LI);
CS_InsertEntry (S, X, I+2);
/* ldy #yy-3 */
Arg = MakeHexArg (L[3]->Num - 3);
X = NewCodeEntry (OP65_LDY, AM65_IMM, Arg, 0, L[4]->LI);
CS_InsertEntry (S, X, I+2);
/* clc */
X = NewCodeEntry (OP65_CLC, AM65_IMP, 0, 0, L[5]->LI);
CS_InsertEntry (S, X, I+3);
/* adc (sp),y */