CS401_COMPUTER ARCHITECTURE AND ASSEMBLY LANGUAGE.
20-may-2011

In STOSB instruction, when DF is Set, SI is

Incremented by 1
Incremented by 2
Decremented by 1
Decremented by 2

To transfer control back the RET instruction take
1 argument
1 argument
3 arguments
No arguments

After execution of JCXZ instruction CX will changed with flag affect.
CF
OF
DF
None of Above


{previous paper question}
Execution of the instruction “mov word [ES : 0], 0x0741” will print
“A” appear on the top left of screen
“A” appear on the top right of screen
“A” appear on the center of screen
“A” appear on the bottom left of screen
{current paper question}
Above question was asked as this:
Execution of the instruction “mov word [ES : 0], 0x0741” will print “A” appear on the top left of screen. Tell the color of background.
White
Black
Red
Blue
I am not sure about the correct answer of this question. So please find it by yourself.

Sponsored Links


If D is “35” is shift to left 2 bits the new value
35
70
140
17

ASCII stands for? Asked in mcq’s
ASCII stands for American Standard Code for Information Interchange.


Screen dimension were asked in mcq’s
The screen is two dimensional having 80 rows and 25 columns.

This is also asked in mcqs.
The memory is linearly mapped on this two dimensional space,
See page # 72 on handouts.

What is stack overflow[2 marks]
Difference between LES and LDS [3 marks]
What is screen scrolling and what are the purposes of this instruction [3 marks]
What are string instructions and how do they work in assembly language [5 marks]


One question was asked like this
AL=11001011b [5 MARKS]
CF=1
Set “AL” for each iteration and suppose every preceding value is the part of the system.
A). SHL AL =? , CF =?
B). SHR AL =? , CF =?
C). ROR AL =? , CF =?
D). ROL AL =? , CF =?
E). RCR AL =? , CF =?