Give the value of the zero flag the carry flag the sign


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.

  1. MOV BX, [BX]
  2. MOV CX, [SI]
  3. MOV BX, [AX]
  4. ADD [SI], [DI]
  5. INC [DI]

Q.NO. 2 Calculate the physical memory address generated by the following segment offset pairs.

  1. 1DDDh:0436h
  2. 1234h:7920h
  3. 74F0h:2123h
  4. 0000h:6727h
  5. FFFFh:4336h
  6. 1080h:0100h
  7. 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.

Solution Preview :

Prepared by a verified Expert
Business Management: Give the value of the zero flag the carry flag the sign
Reference No:- TGS01575149

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)