Patent attributes
A method for micro-code execution for an electronic device is disclosed. The method includes: providing the electronic device with a micro-code partitioned into a main core and at least a function code, the micro-code being stored in a first storage module of the electronic device; and when the electronic device is powered on, loading the main core from the first storage module into a second storage module of the electronic device, and switching between the second storage module for executing the main core and the first storage module for executing the function code to control operation of the electronic device. The function code is executed when called by execution of the main core.