Chris Kelly
Well-known member
Hi
I'd like to be able to wipe all of the RAM storage variables as part of my code
But let's say that in the rest of my code, there is no data stored after address 64. Then am I wasting 'time' by asking the program to keep incrementing the address pointer all the way up to 128? I only ask because in PE6 this part of the code takes a while to process when I run the program.
Instead of just defining 128 as the 'end' value in my FOR loop, is there instead a way of having this number as a variable? So, if my variable is set to 64, then my code can just say
for bptr = 32 to VARIABLE
Or is this a non-issue, since the Picaxe will run through this FOR loop incredibly fast?
Thanks
Chris
I'd like to be able to wipe all of the RAM storage variables as part of my code
Code:
for bptr = 32 to 128
@bptr = 0
next
Instead of just defining 128 as the 'end' value in my FOR loop, is there instead a way of having this number as a variable? So, if my variable is set to 64, then my code can just say
for bptr = 32 to VARIABLE
Or is this a non-issue, since the Picaxe will run through this FOR loop incredibly fast?
Thanks
Chris