gee, didn't mean to come across as upset - far from it! I got a chuckle out of it. I've written a ton of PIC assembler and am getting tired of getting the btfsx sense wrong or being in the wrong bank. That's why I use the simulator on little snippets of code - too make sure I got it right. PICs are amazing but the instruction set basically sucks. A C compiler really does make it a lot easier for the average programmer.=20 btw, my first code was Basic on an RCA Spectra 70 in 1971 but I really dont count that as programming.=20 --- Ake Hedman wrote: > Phil, >=20 > You are right. I wrote my first code early 1980 so > you beat me with four=20 > years. ;-) >=20 > I also still write a lot of assembler still but not > for any religious=20 > reasons. I just try to use the tool I think is best > for the job at=20 > hand. For me it would be stupid to write all the > code for a 18F258 in=20 > assembler. I can understand if one or maybe two K > of it was in=20 > assembler because of some special needs. But as > always this is up to the=20 > person doing the job. I can't see that one way or > the other should be=20 > wrong even if I'm convinced that 32K C is easier to > maintain and debug=20 > then 32K assembler. >=20 > Sorry if I upset you in any way. It was not my > intent! >=20 > /Ake >=20 > phil B wrote: >=20 > >I probably saw the light before you were > programming!=20 > >I got hooked on C in 1976 on a PDP-11/45 running > Unix > >V6. (it had 256K of RAM and supported 16 > concurrent > >users. those were the days. sigh...). =20 > > > >But there is no substitute for understanding the > >machine architecture. I still write lots of code > in > >ASM. > > > >Sorry for helping the thread to veer OT... > > > >Phil > > > >--- Ake Hedman wrote: > > =20 > > > >>You have seen the light... ;-) > >> > >>Cheers > >>/Ake > >> > >>phil B wrote: > >> > >> =20 > >> > >>>While I prefer to understand the chip to a depth > >>> =20 > >>> > >>that > >> =20 > >> > >>>only asm allows, it is completely valid that some > >>> =20 > >>> > >>one > >> =20 > >> > >>>whould prefer to code in C. The benefits of C > are > >>>very real. > >>> > >>>As part of evaluating cc5x, I rewrote my driveway > >>>sensor logger code in C (ds1302-SPI, relay, > serial > >>>I/O). It took all of about 3 hours vs the 2 days > >>> =20 > >>> > >>to > >> =20 > >> > >>>do the asm version (and I borrowed a lot of asm > >>> =20 > >>> > >>code > >>>from previous projects). Granted, some time was > >>saved > >> =20 > >> > >>>because I was writing the program the second time > >>> =20 > >>> > >>but > >> =20 > >> > >>>not having to worry about details like the screwy > >>>conditional instructions of the PIC is a big > >>> =20 > >>> > >>benefit. > >> =20 > >> > >>>Phil > >>> > >>>--- Jan-Erik Soderholm > >>> =20 > >>> > >> > >> =20 > >> > >>>wrote: > >>>=20 > >>> > >>> =20 > >>> > >>>>Hasan A. Khan wrote : > >>>> > >>>> =20 > >>>> > >>>> =20 > >>>> > >>>>>Executing: "C:\Program > Files\bknd\CC5X\CC5X.EXE" > >>>>>SAMPLE1.C -CC -fINHX8M -p16F628 -I"C:\Program > >>>>>Files\bknd\CC5X" -a -L -Q -V -FM +reloc.inc > >>>>>Error : Unable to open file 'reloc.inc' > >>>>> > >>>>>why can't the compiler find it? > >>>>> =20 > >>>>> > >>>>> =20 > >>>>> > >>>>Does it exist at all ? > >>>> > >>>>Jan-Erik. > >>>> > >>>>PS: > >>>>You also wrote : > >>>>" One thing I learned was that I didn't have to > >>>> =20 > >>>> > >>use > >> =20 > >> > >>>>assembler..." > >>>> > >>>>No, but why not ? > >>>>You are using a 16F628. Not that much memory. > And > >>>>you'll > >>>>probaby learn the chip faster with assembler > then > >>>>with C. > >>>>Have you written anything in (PIC) assembler ? > >>>> > >>>> > >>>> > >>>>--=20 > >>>>http://www.piclist.com PIC/SX FAQ & list archive > >>>>View/change your membership options at > >>>>http://mailman.mit.edu/mailman/listinfo/piclist > >>>> > >>>> =20 > >>>> > >>>> =20 > >>>> > >>> =09 > >>>Discover Yahoo!=20 > >>>Use Yahoo! to plan a weekend, have fun online and > >>> =20 > >>> > >>more. Check it out!=20 > >> =20 > >> > >>>http://discover.yahoo.com/ > >>>=20 > >>> > >>> =20 > >>> > >>--=20 > >> --- > >>Ake Hedman (YAP - Yet Another Programmer) > >>eurosource, Brattbergav=E4gen 17, 820 50 LOS, Sweden > >>Phone: (46) 657 413430 Cellular: (46) 73 84 84 102 > >>Company home: http://www.eurosource.se =20 > >>Kryddor/Te/Kaffe: http://www.brattberg.com > >>Personal homepage: http://www.eurosource.se/akhe > >>Automated home: http://www.vscp.org > >> > >> > >>--=20 > >>http://www.piclist.com PIC/SX FAQ & list archive > >>View/change your membership options at > >>http://mailman.mit.edu/mailman/listinfo/piclist > >> > >> =20 > >> > > > > >=20 =3D=3D=3D message truncated =3D=3D=3D =09 __________________________________=20 Do you Yahoo!?=20 Yahoo! Mail - Find what you need with new enhanced search.=20 http://info.mail.yahoo.com/mail_250 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist