look at INP() and VARPTR()
PORTB like any other register is located at an address in memory. and you could do somethings like :
someWord=varptr("PORTB")
someByte=inp(someword)
the address can be constructed at run time like any other var, but there is no run time info which means code like :
someString="PORT"
input "some letter" , letter
somestring=somestring + someletter
this would create a string like portb, portX etc.
but varptr() can not resolve thtat ! _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum