totalspectrum / spin2cpp

Tool to convert Parallax Propeller Spin code to PASM, C++ or C
Other
46 stars 17 forks source link

Bad evaluation order when accessing memory and assigning in the same expression #436

Open Wuerfel21 opened 8 months ago

Wuerfel21 commented 8 months ago
PUB main(i)
  return byte[i] + (i+=1)
  'return (i) + (i+=1) '' oddly enough, this evaluates correctly

i should increment after reading the byte, but increments before.