Tamas Rudnai wrote: > 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. I prefer to keep the RES together with each routine. That way I get both the variables and the code at the same time when I decide to include something, such as some standard LCD code or whatever. RES makes it realy easy to have variable allocations (RES) scattered around the code since MPLINK takes care of all addresses. If you realy need to see all your variable allocations in one place, look in the MAP file... Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist