At 10:14 PM 3/20/2010, Josh Koffman wrote: >I think I get the basic gist of what's going on, but I don't >understand the use of constants in a couple of the commands, >specifically: > > MOVLW 0100H - 060H >and > RETLW 0100H - 024H > >I'm not really sure why constants in an equation are used here rather >than just the result of the equation. Andy is showing you why he chose the number rather than just giving you a single, bare number that you might have a hard time figuring out why that particular number was chosen. The assembler can do the math on the fly so there is not a downside to doing it that way - it doesn't generate any extra code. >Also, am I correct in assuming SKPNC is "skip if no carry" and SKPDC >is "skip if yes carry"? I've never really been able to find out >exactly where those special instuctions come from. skpnc = skip if carry is not set skpdc = skip if digit carry is set Look up 'pseudo operations' in the assembler help files. dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax www.trinity-electronics.com Custom Electronics Design and Manufacturing -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist