Rules for Marking
Please note that your assignment will not be graded if:
It is submitted after due date
The file you uploaded does not open
The file you uploaded is copied from some one else
It is in some format other than .doc .ccp .spss
Objective
The assignment has been designed to enable you:
- To know about arithmetic's of Hexadecimal Number System
- To know about different addressing modes
- To calculate effective address
- To calculate physical address
ASSIGNMENT
Answer the following questions
Q.NO.1 Suppose that
BX contains 1000h and offset 1000h contains 1BACh
SI contains 2000h and offset 2000h contains 20FEh
DI contains 3000h and offset 3000h contains 031Dh
Where the above offsets are in the data segment addressed by DS.
Tell which of the following instructions are legal. If legal, give the source offset address and the result or number moved.
- MOV BX, [BX]
- MOV CX, [SI]
- MOV BX, [AX]
- ADD [SI], [DI]
- INC [DI]
Q.NO. 2 Calculate the physical memory address generated by the following segment offset pairs.
- 1DDDh:0436h
- 1234h:7920h
- 74F0h:2123h
- 0000h:6727h
- FFFFh:4336h
- 1080h:0100h
- AB01h:FFFFh
Q.NO. 3 Give the value of the zero flag, the carry flag, the sign flag, and the overflow flag after each of the following instructions if AX is initialized with 0x1254 and BX is initialized with 0x0FFF.
add ax, 0xEDAB
add ax, bx
add bx, 0xF001
Q.NO. 4 What are the two types of address wraparound? What physical address is accessed with [BX+SI] if FFFFh is loaded in BX, SI, and DS.