Abstract In a computer device in accordance with the preferred embodiment of the invention, an instruction set which uses a two-instruction sequence to store the result of a comparison is provided. The two-instruction sequence, which uses no branch instructions, does not need to wait for condition resolution before storing conditional results. Additionally, it also is capable of implementing slightly more general operations than simply storing a zero or one value of a comparison. Basically, the instruction set in accordance with the invention compares two operands and unconditionally stores a zero, which represents a Boolean "false", into a selected destination. The instruction set then conditionally nullifies the instruction following it, thus effecting a highly efficient execution of a sequence of instructions compared to the prior art.
A method for handling data conditionally in a computer device comprising the steps of: receiving a single instruction; and in response to said single instruction: fetching and comparing in accordance with a selected condition two selected values from a first and a second register, respectively; and clearing a third register unconditionally.
Claim 2
Independent Claim
51 words
A method for handling data conditionally in a computer device comprising the steps of: receiving a single instruction; and in response to said single instruction: fetching and comparing in accordance with a selected condition two selected values from a first and a second register, respectively; and clearing a third register unconditionally.
Claim 3
Dependent Claim
28 words
The method for handling data as in claim 1, wherein said steps of fetching and comparing and clearing are performed within a single cycle of said computer device.
Claim 4
Dependent Claim
34 words
The method for handling data as in claim 1, further comprising the step of nullifying an instruction to be performed during a second cycle following said single cycle in response to meeting said condition.
Claim 5
Dependent Claim
24 words
The method for handling data as in claim 3, wherein said step of nullifying is performed within said single cycle of said computer device.