1
0
mirror of https://github.com/cc65/cc65.git synced 2024-08-07 11:29:03 +00:00

Fixed an optimizer problem.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4632 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2010-03-21 14:08:46 +00:00
parent 1a4e2edede
commit 0e60a60c3e

View File

@ -6,10 +6,10 @@
/* */ /* */
/* */ /* */
/* */ /* */
/* (C) 2001-2009 Ullrich von Bassewitz */ /* (C) 2001-2010, Ullrich von Bassewitz */
/* Roemerstrasse 52 */ /* Roemerstrasse 52 */
/* D-70794 Filderstadt */ /* D-70794 Filderstadt */
/* EMail: uz@cc65.org */ /* EMail: uz@cc65.org */
/* */ /* */
/* */ /* */
/* This software is provided 'as-is', without any expressed or implied */ /* This software is provided 'as-is', without any expressed or implied */
@ -904,14 +904,14 @@ static unsigned OptPtrStore3 (CodeSeg* S)
X = NewCodeEntry (OP65_TAY, AM65_IMP, 0, 0, L[4]->LI); X = NewCodeEntry (OP65_TAY, AM65_IMP, 0, 0, L[4]->LI);
CS_InsertEntry (S, X, I+15); CS_InsertEntry (S, X, I+15);
X = NewCodeEntry (OP65_LDA, L[8]->AM, L[8]->Arg, 0, L[8]->LI); X = NewCodeEntry (OP65_LDA, L[9]->AM, L[9]->Arg, 0, L[9]->LI);
CS_InsertEntry (S, X, I+16); CS_InsertEntry (S, X, I+16);
Label = memcpy (xmalloc (Len-2), L[0]->Arg+2, Len-3); Label = memcpy (xmalloc (Len-2), L[0]->Arg+2, Len-3);
Label[Len-3] = '\0'; Label[Len-3] = '\0';
X = NewCodeEntry (OP65_STA, AM65_ABSY, Label, 0, L[11]->LI); X = NewCodeEntry (OP65_STA, AM65_ABSY, Label, 0, L[11]->LI);
CS_InsertEntry (S, X, I+17); CS_InsertEntry (S, X, I+17);
xfree (Label); xfree (Label);
/* Remove the old code */ /* Remove the old code */
CS_DelEntries (S, I, 12); CS_DelEntries (S, I, 12);