You are right, a word only goes up to 65535. If you have PBP v 2.5 or later, (and were using a PIC18 chip) you could select to use PBPL to compile, and define your large variables as LONG instead of WORD.
If you want to stick with the PIC16 series, you could use N-BIT math. http://www.picbasic.co.uk/forum/cont...153-N-Bit_MATH
By the way, it looks like you are using PM as your assembler.
You probably need to use MPASM for N-Bit Math to work. For that, you define your configs like this:
Code:
@ __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF
But you must comment out the configs in you C:/PBP/16F877A.INC file.
See : http://www.picbasic.co.uk/forum/cont...o-your-Program
Last edited by ScaleRobotics; - 7th November 2010 at 15:41.
http://www.scalerobotics.com
Bookmarks