> Hi, > I've been doing a lot of meddling with 16-bit numbers as > part of my battery charger project. I seem to recall that a > number of years ago, I had a copy of a program that took an > expression (along the lines of "x < 5") and generated the > code to perform that comparison. ISTR it also had support for > 8- and 16-bit comparisons. http://www.markworld.com/microtools.html does math but not comparisons. http://www.sxlist.com/techref/expeval2.asp does everything, but doesn't really do it. Just helps you do it yourself. Oh, and it uses Parallax mnemonics not PIC. http://www.piclist.com/techref/microchip/compcon.htm has all the code snippets you could want. http://www.piclist.com/techref/microchip/codeflow.htm has more general information http://www.seanet.com/~karllunt/picmacro.htm has macros that implement high level conditional statements in MPASM but I don't believe it does 16 bit stuff. And I'm interested in anything else that is found... --- James Newton: PICList webmaster/Admin mailto:jamesnewton@piclist.com 1-619-652-0593 phone http://www.piclist.com/member/JMN-EFP-786 PIC/PICList FAQ: http://www.piclist.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist