On Mon, 6 May 2002, Jinx wrote: > > Since 10,000 in decimal is 0x2710 why not just do the 0x10+1 > > (i.e.0x11) and be done with it > > Yes, I could do that. I'm still trying to pull that code apart, and > would prefer it if I could at least assemble it so as to run it. So > at a guess (uninformed at this stage) I presume the original > expression is there to show how the 10+1 is derived from > right-shifting the 10,000 Actually, 0x2710>>8 +1 is 0x27+1 = 0x28. The output(temp) is a carry over from the original author's implementation. You can safely change this to: call output_temp ... output_temp: ; write some code to take the BCD coded value ; in the variable 'temp' and write some it some ; where (like an LCD). Scott -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu