Patent ID: 6345357
Filing Date: 2002-02-05
Classification: G06F

Abstract:
A data processor operating in accordance with a program,said data processor having a step repeat function working in response to a step repeat instruction which is written in said program and can designate first to N-th (N&gE;2) instructions and an execution instruction number M (M&gE;1), for repeating said first to N-th instructions K (the quotient of M/N) times and then execute first to L-th (the remainder of M/N) instructions, said data processor comprising, for said step repeat function: an execution instruction number judgment portion for counting up the number of instruction execution count every time when any one of said first to N-th instructions is executed, to output an instruction execution number judgment result indicating whether an achievement state where said instruction execution count reaches said execution instruction number M or an unachievement state where does not reach; an instruction fetch portion for repeatedly fetching said first to N-th instructions in the order of first, second, . . . N-th, first, second, . . . when said step repeat instruction is executed; and an instruction execution control portion sequentially receiving instructions fetched in said instruction fetch portion, for sequentially executing said instructions received from said instruction fetch portion when said instruction execution number judgment result indicates said unachievement state and for negating said instructions received from said instruction fetch portion when said instruction execution number judgment result indicates said achievement state, in execution of said step repeat instruction.