ISA may support different flavors of conditional branch instructions such as BZ (branch on Zero), BN (branch on negative), and BEQ (branch on equal). Figure out the predicate expressions in an “if” statement that may be best served by these different flavors of conditional branch instructions. Give examples of such predicates in “if” statement, and how you will compile them using these different flavors of branch instructions.
What will be an ideal response?
BZ: if (a == 0)
BEQ: if (a == b)
BN: if (a < 0) or if (a < b) which becomes if (a-b < 0)
BP: if (a > 0) or if (a>b) which becomes if(a-b > 0)
Computer Science & Information Technology
You might also like to view...
Class WebClient’s ________ method starts a new Task
a) RequestWebStringAsync b) QueryWebStringAsync c) StartTaskStringAsync d) DownloadStringTaskAsync
Computer Science & Information Technology
PowerPoint gives you the ability to format the text on the slide. Please define a slide master and explain how you would go about accessing and modifying the font attributes on a slide master.
What will be an ideal response?
Computer Science & Information Technology