NO

Author Topic: Variable in register  (Read 3180 times)

andre.goncalves

  • Guest
Variable in register
« on: September 05, 2017, 01:35:26 AM »
I made a FOR of 9 to> = 0 and mistakenly used an unsigned control variable. It worked correctly. When you add a new statement to FOR, it started reporting access violation. I performed the debug and checked my error because when the control variable reaches zero as it is no signal then turn to 65535. This error should happen at the beginning but did not happen because in the initial situation without the new instruction the variable was allocated in a register and this one I do not know because it did not test the variable in FOR. When it includes this new statement, the variable is no longer in a register and when testing FOR it informs the violation error because I do not have an array with 65535 items.