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. Does anyone else remember seeing something like this? Thanks. -- Phil. | Kitsune: Acorn RiscPC SA202 64M+6G ViewFinder philpem@dsl.pipex.com | Cheetah: Athlon64 3200+ A8VDeluxeV2 512M+100G http://www.philpem.me.uk/ | Tiger: Toshiba SatPro4600 Celeron700 256M+40G -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist