Claims
- 1. An apparatus for processing data, comprising:a calculator for operating on data; and a plurality of flag group units, each of said flag group units storing a plurality of flags, all flags stored in the same flag group unit being changed based on the same bit field of data obtained by operation of said calculator, wherein flags in different flag group units are changed based on different bit fields of the obtained data.
- 2. An apparatus for processing data, comprising:an instruction decoding unit for decoding instructions, said instructions including arithmetic operation instructions and conditional branch instructions; a calculator for operating on data in accordance with decoded instructions; a plurality of flag group units, each of said flag group units storing a plurality of flags, all flags stored in the same flag group unit being changed based on the same bit field of data obtained by operation of said calculator; a flag selecting unit for selecting one of said plurality of flag group units in accordance with an instruction decoded by said instruction decoding unit; and a branch judging unit for receiving a branch condition from a conditional branch instruction decoded by said instruction decoding unit and for judging whether to branch by referring to at least one flag stored in a flag group unit selected by said flag selecting unit.
- 3. A method for processing data by using a unit for decoding instructions, a calculator for executing operations, and a plurality of flag group units, each of said flag group units storing a plurality of flags, all flags stored in the same flag group unit being changed based on the same bit field of data obtained by operation of said calculator, said method comprising the steps of:decoding said instructions and judging whether said instructions are arithmetic operation instructions; performing arithmetic operations on data in accordance with decoded arithmetic operations; changing said flag based on a bit field produced by said calculator; selecting a flag group unit corresponding to a bit filed designated by an instruction; and executing a branch by referring to at least one flag in the selected flag group unit, wherein flags in different flag group units are changed based on different bit fields of the obtained data.
- 4. An apparatus for processing data, comprising:a calculator for operating on data and outputting an operation result; and a plurality of flag group units, each one of the flag group units storing a plurality of flags, wherein the flags stored in the same flag group unit are change based on the same bit width of data from the operation result, and flags in different flag group units are changed based on different bit widths of data from the operation result.
- 5. An apparatus for processing data, comprising:an N-bit calculator for operating on data and outputting an operation result; anda first and second flag group unit, each one of the flag group units storing a plurality of flags, wherein the flags stored in the first flag group unit are changed based on less than N-bits of data from the operation result, and the flags in the second flag group unit are changed based on all N-bits of data from the operation result.
- 6. A method for processing data by using a unit for decoding instructions, a calculator for executing operations of N-bit data in accordance with decoded instructions, and a plurality of flag units, the flag units can provide at least a first flag selected with a first bit width of data equal to N and a second flag selected with a second bit width of data less than N, said method comprising the steps of:decoding said instructions and judging whether said instructions are arithmetic operation instructions; performing arithmetic operations on data in accordance with said decoded arithmetic operations; providing at least one applicable flag from said plurality of flag units based on selected bit widths of data obtained from said arithmetic operation; and executing a branch by referring to said applicable flag, wherein the flags in the plurality of flag units are changeable based on different bit widths of data contained within said arithmetic operation result of an N-bit data width.
Priority Claims (1)
Number |
Date |
Country |
Kind |
5-1295528 |
May 1993 |
JP |
|
Parent Case Info
This application is a Divisional of application Ser. No. 08/246,179 filed May 19, 1994 now U.S. Pat. No. 5,991,868.
US Referenced Citations (6)
Number |
Name |
Date |
Kind |
4788655 |
Nakayama et al. |
Nov 1988 |
|
4811266 |
Woods et al. |
Mar 1989 |
|
4812971 |
Butts, Jr. et al. |
Mar 1989 |
|
5034879 |
Woodward et al. |
Jul 1991 |
|
5151993 |
Yamahata |
Sep 1992 |
|
5991868 |
Kamiyama et al. |
Nov 1999 |
|
Foreign Referenced Citations (4)
Number |
Date |
Country |
369407 |
May 1990 |
EP |
395348 |
Oct 1990 |
EP |
437207 |
Jul 1991 |
EP |
54-117646 |
Dec 1979 |
JP |
Non-Patent Literature Citations (1)
Entry |
“16 Bit Microprocessor 8086 Family,” ISBN 4-7856-30329-9, Mar. 31, 1957. |