Ah... Okay. Thanks. That helps a lot! -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Jinx Sent: 12 January 2006 03:56 PM To: Microcontroller discussion list - Public. Subject: Re: [PIC] 16f84 sine table app > The code is pretty much as I found it on the Web. Thanks. Ah. So it's just a routine - you'll have to put some clothes on it then > ADDWF PCL, F ; or PCL? Either will do with MPLAB as ,F is the default, so PCL is compiled as if written PCL,F When you do get it organised as a proper program, you'll need to adjust the CALL index as contained in W. Either set manually (by changing WREG in the Watch Window) or use Pin Stimulus on PortA Don't forget to keep a look-out for differfences between the F84 and whatever you're actually putting it into (eg RAM ORG of 0x0C is not the same as for the 628/88/877 etc). And changing this sort of thing BSF STATUS, RP0 ; Select bank 1 MOVLW B'11111111' ; 1 to set input MOVWF PORTA ; Set PORTA as Input to banksel porta if you can't guarantee what's in RP1 for example -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist