I load the variable with:
If I use DEC then my output is messed up. I did try it though and it does output.Code:if temp.8 = 1 then ' If bit8 of temperature is set then its negative sign = 45 ' Indicate temperature is NEGATIVE temp.lowbyte = temp.lowbyte ^ 255 ' Reverse the bits of the lowbyte of TEMP sign = 160 ' Indicate temperature is POSITIVE endif
Bookmarks