摘要 |
A plurality of registers included in a central processing unit are electrically divided into a plurality of register-sets which are arranged in a given order to be used as a stack where one of the register-sets at the top of stack is normally used for executing the program of a main routine. In one embodiment, the data of the register-sets are pushed down for executing interrupt service routines and then popped up for resuming the suspended program. When all of the register-sets are loaded, the data may be saved in a saving region of a main memory, and the saved data may be directly transferred to the top register-set when needed. In another embodiment, actual push down and popping up of data are not performed but one of the register-sets is selectively enabled so that the register-sets function as a stack.
|