6.     Identify the problems in the following instructions and correct them by replacing them with one or two instruction having the same effect.

a.      mov [02], [ 22]

b.       mov [wordvar], 20

c.      mov bx, al

d.     mov ax, [si+di+100]

7.         What is the function of segment override prefix and what changes it brings to the opcode?

8.      What are the two types of address wraparound? What physical address is accessed with [BX+SI] if FFFF is loaded in BX, SI, and DS.

9.         Write instructions to do the following.

a.      Copy contents of memory location with offset 0025 in the current data segment into AX.

b.       Copy AX into memory location with offset 0FFF in the current data segment.

c.       Move contents of memory location with offset 0010 to memory location with offset 002F in the current data segment.

10.     Write a program to calculate the square of 20 by using a loop that adds 20 to the accumulator 20 times.

 

 

 

Previous

 

 

TOC