Calculate the physical memory address generated by the


Question_1:

What is the effective address generated by each of the following instruction?

Initially BX=0x0010,label=0x0124, [label]=0x0001, andSI=0x00F1

(Offsets in part a, b and f are in decimal)

  1. mov ax, [bx+30]
  2. mov ax, [bx+20]
  3. mov ax, [bx+label]
  4. mov ax, [label+bx]
  5. mov ax, [bx+si]
  6. mov ax, [si+15]

Question_2:

Calculate the physical memory address generated by the following segment offset pairs (both are hexadecimal values).

  1. 0000:0100
  2. 0010:0000
  3. 1DAD:1234
  4. 4321:FFFF
  5. FFFF:4321
  6. FFEF:4421
  7. 1080:0200

Question_3:

Write a program in assembly language that calculates the sum offirst five odd numbers (1, 3, 5, 7, 9) and stores the result in AXregister.

You can do it with the help of loop (initialize AX register withvalue 0 and BX with value 1, and then on each iteration of loop addBX into AX and add value 2 in BX).

You are NOT allowed to define the data (likenum1: dw 1, 3, 5, 7, 9)

You have to submit the assembly language code for this programand screen-shot of this program loaded in AFD debugger in which theAX register contains the result.

Solution Preview :

Prepared by a verified Expert
Macroeconomics: Calculate the physical memory address generated by the
Reference No:- TGS01595811

Now Priced at $30 (50% Discount)

Recommended (99%)

Rated (4.3/5)