Olin Lathrop wrote: > > W is a 8 bit register. It can hold any 8 bit binary value. If you > interpret that binary value as a unsinged integer, then it can hold from 0 > to 255. If you interpret it as a signed integer, then it can hold from > -128 > to +127. In any case the statement that it can only hold 255 is wrong, as > it can hold 256 different values no matter how you interpret the binary > pattern. Also since it would generally be wrong to interpret the W value > as > anything other than a signed or unsigned integer without specific context > to > the contrary, saying that it can hold 256 is wrong. > Thanks Olin, It is a useful explanation. What I wanted to say is that it can hold 256 distinct values. In assembler, how can I specify I want to assign the value of W to an unsigned or signed integer? Regards, Nick -- View this message in context: http://www.nabble.com/Project-with-LCD%2C-keys-and-delays-on-PIC16F628A-tp23309866p23318572.html Sent from the PIC - [PIC] mailing list archive at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist