if i have a hex byte, say "FF", is there something to read the first 4 bits and last 4 bits individually? or put it into another variable? Something simliar to reading a WORD variable using ".highbyte" and ".lowbyte"
I am currently doing this this way:
nibholderLow.0 = myvar.0
nibholderLow.1 = myvar.1
nibholderLow.2 = myvar.2
nibholderLow.3 = myvar.3
nibholderHigh.0 = myvar.4
nibholderHigh.1 = myvar.5
nibholderHigh.2 = myvar.6
nibholderHigh.3 = myvar.7
Basically, nibholderLow is a variable which holds first 4 bits of the byte FF, (ie. 15) and the other one, nibholderHigh holds the other F.
the variable myvar is constantly changing, I can't declare this conversion at the very top.
Bookmarks