>div16by16 >BANK1 >clrf x_2 ;clear >clrf x_3 ;remainder >div16by16loopinit >clrf tempa ;clear remainder extension >movlw 0x10 >movwf counter >BSF STATUS,C ;first iteration will be subtraction This was originally the SETC command, I didn't find it in the 16F873A instruction set summary. I just remembered that you can not set the Carry bit directly. I have changed it to MOVLW 0xFF ADDLW 0x01 which would set my carry bit. A bit of progress I guess. Chuck -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist