> For lines 14, 18, 23, and for the check label I get error #302 "Register in > operand not in bank0" when the program is debugged. Also PortB is said to be > "undefined" in line 40. How do I correct these errors? PORTB needs to be in all capitals. the 302 is just a warning. disable it with the directive ERRORLEVEL -302 ;remove message about using proper bank -Scott -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist