Changeset 137 for trunk/UBFTarget.pas


Ignore:
Timestamp:
Mar 5, 2022, 4:38:34 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Wrong index variable used in inc/dec merge optimization.
  • Fixed: Reload output if program is reset.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UBFTarget.pas

    r136 r137  
    267267          if NewProgram[NewProgram.Index - 1].Command = cmPointerInc then
    268268            NewProgram.Operations[NewProgram.Index - 1].Parameter := NewProgram[NewProgram.Index - 1].Parameter +
    269               FProgram[FProgram.Index].Parameter
     269              FProgram[FProgramIndex].Parameter
    270270          else
    271271          if NewProgram[NewProgram.Index - 1].Command = cmPointerDec then
    272272            NewProgram.Operations[NewProgram.Index - 1].Parameter := NewProgram[NewProgram.Index - 1].Parameter -
    273               FProgram[FProgram.Index].Parameter;
     273              FProgram[FProgramIndex].Parameter;
    274274          // If value negative then change command
    275275          if NewProgram[NewProgram.Index - 1].Parameter < 0 then begin
Note: See TracChangeset for help on using the changeset viewer.