Data processing system and method for executing block call and block return instructions
A data processing system includes a control register, a program counter and a controller. The control register is used to store a level status of an execution flow and at least one return address. When the controller reads a block call instruction while a level status of the execution flow has an initial value, the controller stores a return address of the block call instruction in the control register, increments a value of the level status, and redirects the execution flow to a target address indicated by the block call instruction. When the controller reads a block return instruction and the value of the level status is not equal to the initial value, the controller decrements the value of the level status. If the value of the level status becomes equal to the initial value, the controller redirects the execution flow to the return address.
Andes Technology Corporation
G G G G
G06F G06F G06F G06F
inventional inventional inventional inventional
Jen-Chih Chuan-Hua Hong-Men
Tseng Chang Su