# Tag Archives: control

## What do you understand by a decision-control statement? Give an example of each. 8m Jun 2010

What do you understand by a decision-control statement? Give an example of each. 8 In a C program, a decision causes a one-time jump to a different part of the program, depending on the value of an expression. Decisions in C can be made in several ways. The most important is with the if…else statement,… Read More »

## A computer has 32 registers, ALU has 64 operations. in a common bus system. Formulate a control word; specify bits in each field of the control word. 5m Dec2005

A computer has 32 registers, ALU has 64 operations. All are connected to a common bus system. Formulate a control word for the computer; specify the bits in each field of the control words. 5m Dec2005 Please note the following points: The opcode size is 7 bits. So, in general it will have 27 =… Read More »

## ASSEMBLY29 An Assembly program using the method of “add-and-shift” loop, in which you use the binary digits of one number to control additions of a shifted version of the other number into a running total; this is essentially the same algorithm you use when multiplying numbers by hand in decimal

Now we will write another Assembly program, Using the method of “add-and-shift” loop, in which you use the binary digits of one number to control additions of a shifted version of the other number into a running total; this is essentially the same algorithm you use when multiplying numbers by hand in decimal Let’s identify variables… Read More »