Arrays using PBASIC for the SX
Does anyone know how to create arrays using PBASIC for the SX microcontroller??
I know how to do it with assembly but would like to do it with PBASIC!
thanks
-Jose
·
I know how to do it with assembly but would like to do it with PBASIC!
thanks
-Jose
·
Comments
I assume you mean SX/B ?
You just put the array size in parens like this:
myArray VAR BYTE(10) ' This is an array of 10 elements myArray(0) to myArray(9)
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.iElectronicDesigns.com
·