This code: long i, j; i =j*5; causes these errors: ERROR C:\MPLAB\MPLABC14.LIB 20:16:ILLEGAL OR UNDEFINED ARGUMENT _t 1 ERROR C:\MPLAB\MPLABC14.LIB 21:7:EXPECTED ;, ERROR C:\MPLAB\MPLABC14.LIB 21:7:EXPECTED , got s ERROR C:\MPLAB\MPLABC14.LIB 24:5:ILLEGAL OR UNDEFINED ARGUMENT R1 .. 6 ERROR C:\MPLAB\MPLABC14.LIB 25:5:ILLEGAL OR UNDEFINED ARGUMENT R1 .. 6 ERROR C:\MPLAB\MPLABC14.LIB 26:5:ILLEGAL OR UNDEFINED ARGUMENT R1 .. 6 ERROR C:\MPLAB\MPLABC14.LIB 27:12:ILLEGAL OR UNDEFINED ARGUMENT R1 .. 6 ERROR C:\MPLAB\MPLABC14.LIB 35:14:ILLEGAL OR UNDEFINED ARGUMENT _r 2 ERROR C:\MPLAB\MPLABC14.LIB 36:14:ILLEGAL OR UNDEFINED ARGUMENT _q 2 ERROR C:\MPLAB\MPLABC14.LIB 37:14:ILLEGAL OR UNDEFINED ARGUMENT _s 2 I find this very disturbing since a file named ctutor.c which shipped with the compiler contains this code: #include <16c54.h> #include unsigned int Num1=2, Num2=3; // Declare two eight bit numbers. unsigned long Num3; // Declare one long for the result. unsigned int Num3High @ &Num3+1; // Create an address for the top byte. void main() { while(1) { Num3 = Num1 * Num2; // Multiply the two bytes into a long. } } Thanks, David Novak Hopkins Mfg. novak@valu-line.net ---------- > From: Andy Kunz > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: Multiplication > Date: Monday, February 24, 1997 5:25 PM > > At 02:44 PM 2/24/97 -0600, you wrote: >>Why can't I use multiplication with MPLABC and the 16C63? I get all kinds > >of errors when I attempt it. Is it not possible, or am I doing something > >wrong? > > The 16C parts don't have hardware multiply. > > If using software, how about posting the routine. > > Andy