2. The method of claim 1 , wherein detecting the state comprises reading variables periodically from storage locations associated with the apparatus.
3. The method of claim 2 , wherein the storage locations comprise register locations corresponding to hardware associated with the apparatus.