On Tue, 19 Oct 2004, Jose Da Silva wrote: > On Tuesday 19 October 2004 02:56 am, Jan-Erik Soderholm wrote: > > Jose Da Silva wrote : > > > if (foo[bar++] > 3) <-might be nice on a chip with pre/post > > > inc pointers such as 6809 but probably comes out > > > horrible on PIC. > > My mistake. > I've got my processors mixed up... I was thinking you could auto inc/dec the > X Y U or S indexes on the 6809 :-( It has offsets, but not auto inc/dec. Actually the 6809 _does_ have auto increment/decrement. It has both auto-increment by one or by two, and auto-decrement by one or two. For example: LDA ,X+ LDB ,Y++ LDA ,-X LDB ,--Y (I did have to crack open by copy of "TRS-80 Color Computer Assembly Language Programming" by William Barden, Jr. to remind myself of the indexed addressing mode.) -- Robert -- Robert James Kaes WormBytes Consulting and Contracting http://www.wormbytes.ca/ _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist