2010/2/20 MCH : > Can someone explain that command to me? (MOVLW '0'-1) > > I know what MOVLW is, and I understand the (default radix) of '0' (in > which case I guess the radix doesn't matter anyway since it's 0), but > I'm stumped by the "-1" on the end. I don't see any provision for that > in the docs. What does that do? > > Thanks, > Joe M. > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > No. '0' is not zero. It's "character 0", which has ascii value of 0x30, or 48 in decimal. The statement you mentioned is equavalent to the following: MOVLW 0x2F MOVLW .47 Hope this helps, -- WH Tan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist