Data processor and method utilizing coded no-operation instructions
First Claim
Patent Images
1. A microcomputer for executing a program having a plurality of instructions including at least one no-operation instruction, comprising:
- a decoder which decodes the instructions;
an execution unit which executes a predetermined operation in accordance with the result of the decoding by the decoder;
a program counter which stores the address of the instruction to be next executed; and
a branch address register which stores the address of a branch destination;
wherein the no-operation instruction has a field for storing data for the branch destination address of a branch instruction issued after the no-operation instruction,the execution unit executes an operation corresponding to an address of the branch destination of the branch instruction using the data stored in the field of the no-operation instruction, andthe result of the operation executed by the execution unit is stored in the branch address register as the address of the branch destination of the branch instruction.
2 Assignments
0 Petitions
Accused Products
Abstract
A compiler incorporates obtained information for controlling the data-processor hardware, such as the position of the branch destination of a branch instruction and the used states of registers into object codes (NOP instruction) including a no-operation instruction code to post it to the data processor. The data processor is so constituted as to effectively use the data-processor resource not practically used by the no-operation instruction code and reflect the hardware control information included in the object code on data processing.
-
Citations
15 Claims
-
1. A microcomputer for executing a program having a plurality of instructions including at least one no-operation instruction, comprising:
-
a decoder which decodes the instructions; an execution unit which executes a predetermined operation in accordance with the result of the decoding by the decoder; a program counter which stores the address of the instruction to be next executed; and a branch address register which stores the address of a branch destination; wherein the no-operation instruction has a field for storing data for the branch destination address of a branch instruction issued after the no-operation instruction, the execution unit executes an operation corresponding to an address of the branch destination of the branch instruction using the data stored in the field of the no-operation instruction, and the result of the operation executed by the execution unit is stored in the branch address register as the address of the branch destination of the branch instruction. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A microcomputer for executing a program having a plurality of instructions including at least one no-operation instruction, comprising:
-
a decoder which decodes the instructions; an execution unit which executes a predetermined operation in accordance with the result of the decoding by the decoder; and a plurality of registers for storing predetermined data;
whereinthe no-operation instruction has a field for storing a number identifying a predetermined register available to store the return destination address of a subroutine, and the return destination address of the subroutine is stored in the predetermined register as the result of decoding the field of the no-operation instruction by the decoder. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A microcomputer for executing a program having a plurality of instructions including at least one no-operation instruction, comprising:
-
a decoder which decodes the instructions; an execution unit which executes a predetermined operation in accordance with the result of the decoding by the decoder; a cache memory which stores the instructions; and a cache control register having information for showing whether replacement of the instructions stored in the instruction cache memory is inhibited; wherein the no-operation instruction has a field for storing information for showing whether the no-operation instruction is present in a loop, and in response to decoding of the no-operation instruction by the decoder, information for inhibiting the replacement of the instructions stored in the cache memory is set in the cache control register in order to inhibit the replacement of the instructions if information showing that the no-operation instruction is present in the loop is stored in the field of the no-operation instruction.
-
-
12. In a computing apparatus, a method comprising the steps of:
-
generating an object program, wherein the object program comprises a plurality of instructions, wherein the plurality of instructions comprise at least one no-operation instruction comprising one or more fields, wherein the one or more fields of the no-operation instruction contain control information; storing the object program in a memory; retrieving the instructions of the object program from the memory; decoding the instructions of the object program; executing the instructions of the object program; wherein, responsive to the decoding of the no-operation instruction, the execution of the instructions is responsive to the control information of the one or more fields of the no-operation instruction. - View Dependent Claims (13, 14, 15)
-
Specification