> Having seen that there are numerous problems that crop up that could > be due to un-initialised registers the simulators should be engineered > to point this out. It is very difficult to decide what will happen > to program flow at compile time especially with computed GOTOs so the > only place to detect the use of registers that have not been set up would be > in a simulator. Our simulator, PSIM, allows you to randomize the contents of the register space any time during program execution. This feature was put in to ferret out this exact problem. Your idea is excellent! There would need to be a lot of information about what registers this rule should apply to as some non-ram registers, such as RTCC on the PIC, would not qualify for this treatment. -- Tom Mornini ---------------------------------------------------------- -- Parallax, Inc. ------------------------------------------------------ -- Makers of really cool PIC development tools & the BASIC Stamps ------ -- http://www.parallaxinc.com ftp://ftp.parallaxinc.com/pub --