@ptrinc cannot be a destination variable

beny1949

Senior Member
previously i have been using a prgram that uses the scratch pad to store some variables so an average can be achieved. this has never been a problem, untill i updated program editior to 5.1.2 this morning. now i cannot asign variables if i use @ptrinc, but i can to @ptr.

the error message is as follows:

@ptrin cannot be destination variable(Firmware >= vA.2)

Error: Command not supported in this mode

The hardware connected to the computer is:
PicAxe 28x1 vA.0


Why???? i really need to sort this issue out as soon as possible because i need to get my project done for a competition.

Thanks,
Ben

 
 

beny1949

Senior Member
ok, for now, i have rolled back to the previous state by deleting prog edit out of the folder and then runing the 5.1 patch.

 
 

Technical

Technical Support
Staff member
This is because using 'let @ptrinc = xx' will not work as expected on firmware version A.0. To do this firmware version A.2 or later is required.

A workaround is
let @ptr = xx
inc ptr



Edited by - Technical on 08/06/2007 16:37:39
 
Top