BYTE[Offset]
William50
Posts: 22
Using the code below, will [noparse][[/noparse]Index++] wrap-around to zero when the repeat loop executes the 102nd loop?
Byte Array[noparse][[/noparse]100]
Byte Temp
Index := 0
repeat
Temp := Array[noparse][[/noparse]Index++]
Byte Array[noparse][[/noparse]100]
Byte Temp
Index := 0
repeat
Temp := Array[noparse][[/noparse]Index++]
Comments
Temp is effectively Array[noparse][[/noparse] 100 ] since array subscripts start at zero.· The memory location beyond Temp is effectively Array[noparse][[/noparse] 101 ].
Byte Array[noparse][[/noparse]100]
Byte Temp
Index := 0
repeat
·Temp := Array[noparse][[/noparse]Index++]
·Index //= 100
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.