> So anyone out there still wonder why you should always use RES to reserve RAM? Anyway, variable definitions should go to a single place not just here and there in the code which makes everything messy. If there were only one cblock then that kind of mistakes could have been eliminated. The linker script is however generally a good idea and even unavoidable if the source is separated into files - but even then a 'res' here and there is not a good practise. Tamas On Tue, Jun 17, 2008 at 2:38 PM, Olin Lathrop wrote: > alan smith wrote: > > The > > original author used the cblock directive, but hardcoded some > > variables at the bottom end of the RAM, and as I added some > > additional variables it wrote over the top a couple of these. > > So anyone out there still wonder why you should always use RES to reserve > RAM? > > > ******************************************************************** > Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products > (978) 742-9014. Gold level PIC consultants since 2000. > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- Rudonix DoubleSaver http://www.rudonix.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist