Mauricio Jancic wrote: > What I do, when I debug or try something is to read each bit of a byte > and write it down.... > > 0010.0000 > > Now, I readed all bits and decided their value. Next trasnlate that to > HEX > > 0x20 If you had to figure out the value in binary, then it should be documented in binary. I often do something like this: ; ; Set up the user zap module to provide a shock whenever the user ; does something stupid. ; dbankif zapcon1 movlw b'10011101' ; 1------- select high voltage zap mode ; -XX----- unused ; ---11--- select prescaler of 13 ; -----1-- enable zap for warnings, not just errors ; ------0- disable over current safety feature ; -------1 enable the user zap module movwf zapcon1 ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu