> >The microchip opcodes mostly take a direction bit. > >The direction bit takes some getting used to. For example: incf reg,1 >increments register reg. While incf reg,0 moves reg+1 to w. While we are on this topic what it the easiest way to convert movb serial_out,c ; moves carry bit to portb pin2 The best I could come up with was BTFSC status,carry BSF portb,pin2 BTFSS status,carry BCF portb,pin2 I this the best way or is there a better one? BTW I am just starting out in pic84 assembly. Md -- |------------------------------------------------------------------| |Martin Darwin, aa674@Freenet.carleton.ca (Ottawa, Ontario, Canada)| |Homepage: http://chat.carleton.ca/~mdarwin/martin/ | |Computer Engineering at U of O | To zip files type "go zip" |