Midterm of cs401 Computer architecture and assemblay language programming

In primitive form, the block processing instructions operate on _____ of memory at one
time

1 whole block

2 A single cell

3 A single bit

4 Whole segment

After the execution of STOSWB, the cx will be

1 Decremented by 1

2 Decremented by 2

Sponsored Links

3 Incremented by 1

4 Incremented by 2

In STOSW instructions when DF is set S1 is

Midterm of cs401 Computer architecture and assemblay language programming

1 Decremented by 1

2 Decremented by 2

3 Incremented by 1

4 Incremented by 2



Which bit of the attribute byte represents the inousity component of foreground color?

1 4 th

2 5 th

3 6 th

4 3 rd

Which of the following flags will be affected by Movsw:

1 DF

Midterm of cs401 Computer architecture and assemblay language programming

2 PF

3 ZF

4 Not effect on flag

Q Write down the working of pop instructions (1)

Q What does the instruction “mov[es:di],dx” do? 1 mark

Q What is difference between SHR and SAR instructions?

Q Every charcther is displayed on the screen in the form of word. What each byte of this
word represents? 2marks

Q When the instruction”push ax” is excuted in decrement stack how the value of SP will
change? Marks 3

Q Define address bus? 5 marks

Q Explain the working of shift logical left SHL? 5 marks