1. A method of operating an electronic device on which both dedicated diagnostic software code and operating code are stored, comprising: determining whether the electronic device is to be operated in a diagnostic mode or an operating mode; executing the dedicated diagnostic software code on the electronic device where the electronic device is to be operated in a diagnostic mode; and executing the operating software code on the electronic device where the electronic device is to be operated in an operating mode.