Trauma-Informed Leadership - Five Practical Principles
Model Q.pptx
1. A batsman scores 4, 2, 1, 6, 4, 0 in an over. Write an assembly language program in 8086 to find the total score
by the batsman in that over. Also identify the addressing mode for the instructions you are using in your
program.
2. A bi-cycle travels with a speed of 12 km/hr for 4 hours (without stoppage). Exercise Booth’s Algorithm steps to find
total distance travelled. What are the content of registers ‘A’, ‘M’, and ‘Q’ when ‘n’ reaches values of 1?
3. Consider the following C code
int a ; int b = 10 ; int c = 3;
for (a = 0 ; a < 10 ; a++)
{
If (a < 5) {
b = a * c;
}
Else {
c = a / 2;
}
}
Develop the equivalent assembly language program for the given C code.
4. Find the number of occurrences of positive numbers, negative numbers and zeros in a given set of 10 data
array stored in a block of memory locations whose offset address starts from 4000H:2000H. Store the counts in
memory locations whose offset address is 4000H:2100H, 4000H:2101H and 4000H:2002H.
5. . Depict your understanding of division process in digital computers by performing -9/5.
Two integers, A and B are subtracted by 8086 execution unit ALU of 8086 processor as A-B. Identify the
status of the 8086 flag register if A>B, A=B, and A<B. Assume, suitable values of A and B to demonstrate
the detailed process.
6. What will be the content of AL and BL registers after execution of the following
set of instructions?
MOV AL, 22H
MOV BL, 11H
XOR AL, BL
SHR BL, 1
7. After the execution of the following code identify the status of
flag registers.
MOV AX, 1234 H
MOV BX, 4321 H
XCHG AX, BX
CMP BX, AX
8. . Identify the addressing modes used in the following
instructions:
MOV AL, AH
MOV BH, [0101H];
MOV CX, [DI]
MOV DX, [BX] [SI]
MOV DX, 111H [BX]
9. Realize the following numbers in IEEE 754 Floating point
representation:
-47.7799278 x 2^-8
+86.95375 x 2^4
Also, convert the following IEEE 754 Floating point number into
decimal number format
1 10010011 11100100100010100110101