I'd like to see it... ...at piclist.com or at least linked from there. James Newton, PICList Admin #3 mailto:jamesnewton@piclist.com 1-619-652-0593 phone http://www.piclist.com ----- Original Message ----- From: myke predko To: Sent: Friday, June 29, 2001 17:07 Subject: Re: [PIC]: Compiler I have an include file which provides this capability in macros. Let me know if you are interested in seeing it. myke ----- Original Message ----- From: "Roman Black" To: Sent: Friday, June 29, 2001 12:47 PM Subject: Re: [PIC]: Compiler > Jerry Merrill wrote: > > > > > > > >One thing I do miss is some of the branching tests, > > >which can be a pain with the PIC asm and can cost time > > >and bugs. > > > > > >Something like: > > >if(x>=31) goto blah > > >else if(x==7) goto womble > > > > > >is very fast and safe to code in C but a bit of a pain > > >to code in PIC asm. > > This is the point of our CVASM16 assembler. It adds 'higher level' > > instructions that handle these issues (while maintaining the lower level > > opcodes). This makes it easy to see and do what you want without having to > > deal with double negatives and such. > > > > You mean like: > > CJAE x,#31,blah ; Compare, Jump After or Equal > > CJE x,#7,womble ; Compare, Jump Equal... > > Hi Jerry, it's still not quite as instinctive as > if(x>=31) goto blah > and with that format you get each line as a self > contained bug-proof branching system. With the > low-level nature of PIC processors I often get caught > having to load a test value somewhere, then compare > it with somthing else, then branch/not branch which > again can be another level of confusion. > > Although I love getting at the hardware directly > I still long for one bulletproof line of code > that does branching. It's the minimum I expect from > any decent programming language. > -Roman > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics