Because all possible branch conditions can be synthesized from the existing flags, no new branches are required. However, special?purpose conditions could be used to speed up processing. Branch on odd or even parity could be used in situations involving error?detecting and error?correcting codes (parity is the modulo?two sum of the 1s in a word; parity is even if the number of 1s is zero or even and parity is odd if the number of 1s is odd). A condition code bit could be used in word?processing to indicate whether the current character was alphanumeric or not (i.e., it was a valid letter/number or punctuation/formatting). That would make it easier to determine the end of a word. A branch at random could be a useful mechanism for simulating random events. The probability could
even be scaled; for example, branchRandom r0 could be branch at random with the probability specified by r0 from 0 to 1. External signals could be used for branching; for example, bpin1 could mean branch if the signal at pin 1 is high (this could be used for I/O or system tests). You could have btemp r0 which means branch if the temperature of the CPU core is greater than that specified by r0. This could be used to control processor temperature.
What will be an ideal response?
Because all possible branch conditions can be synthesized from the existing flags, no new branches are required. However, special?purpose conditions could be used to speed up processing. Branch on odd or even parity could be used in situations involving error?detecting and error?correcting codes (parity is the modulo?two sum of the 1s in a word; parity is even if the number of 1s is zero or even and parity is odd if the number of 1s is odd).
A condition code bit could be used in word?processing to indicate whether the current character was alphanumeric or not (i.e., it was a valid letter/number or punctuation/formatting). That would make it easier to determine the end of a word.
A branch at random could be a useful mechanism for simulating random events. The probability could even be scaled; for example, branchRandom r0 could be branch at random with the probability specified by r0 from 0 to 1.
External signals could be used for branching; for example, bpin1 could mean branch if the signal at pin 1 is high (this could be used for I/O or system tests). You could have btemp r0 which means branch if the temperature of the CPU core is greater than that specified by r0. This could be used to control processor temperature.
A system designed for text processing might include the following branches:
B_uc r0 (branch if the character in r0 is uppercase)
B_lc r0 (branch if the character in r0 is lowercase)
B_n r0 (branch if the character in r0 is numeric)
You might also like to view...
A _____ is a simple program unit that allows the user to call one or more functions with a variety of argument values.
a. prototype b. recursive function c. driver d. local variable
All of the following are methods of the class Color except:
(a) getRed (b) brighter (c) darker (d) dimmer
Options to insert a field (e.g., a filename) into a header or footer are in the ________ group of the Design contextual tab
A) Header & Footer B) Header & Footer Elements C) Navigation D) Options
The ____ help desk position is normally staffed by an entry-level employee.
A. Technical Support B. Support Manager C. Incident Screener D. Product Specialist