Jorge Ferreira wrote: > I really think someone here is triyng to scare people away from 'C' > programming (or simply showing of 1/2 KD ;-) ). > 'C' is really a very good programming language that adds the > simplicity of high-level languages with the ability to directly > manipulate the hardware of ASM. But this kind of criptical examples tend > to scare newcommers away. > > I'm, myself a newcommer to PICs and I wouldn't have liked this kind of > welcome to a strange environment. Trying to figure out the logic behind > the Microship ASM mnemonics (after almost 15 years of Intel > microprocessors) is hard enought. > > best regards > > Jorge F True - but I agree that learning assembly first is the best way. That way you'd know what the compiler is doing. Maybe you could explain something to me (since you seem to know your C's) A friend had trouble with the c-compiler we have at tech (I think MCHIP/Bytecraft?) >From the listing file it seems that the compiler keeps on clearing the RP0 bit! Not so nice when the next instruction sets the tris regs! Cheers! -- Eric van Es | Cape Town, South Africa mailto:vanes@ilink.nis.za | http://www.nis.za/~vanes LOOKING FOR TEMPORARY / HOLIDAY ACCOMODATION? http://www.nis.za/~vanes/accom.htm