On Saturday, June 14, 2008 10:07 AM [GMT-3=CET], Olin Lathrop wrote: > Tamas Rudnai wrote: >> but defining variables in >> 'cblock' or 'res' instead. > > No! CBLOCK doesn't define variables at all. It only creates enumerated > constants. If you see code with CBLOCK used to define variables, fire the > author and get out of there fast. Yes. but is still confusing. You can't reset Constants values once they been initialized. (e.g #define, constant directives) With Cblock you create constants related to an incremental address (yes you can reserve consecutive addresses with res directive). You can change and reset the value stored in that address, which is related to that constant. People used to call them variables. Technically they are not, but they behave as. :) Rgs. Dennis -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist