Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Initially BX =0x0010, label =0x0124, [label] =0x0001, and SI =0x00F1 (Offsets in

ID: 3610013 • Letter: I

Question

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

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

Question_2:                                                                                                                    

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

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.

   

Explanation / Answer

please rate - thanks question 1 Initially BX=0x0010, label=0x0124, [label]=0x0001, andSI=0x00F1 (Offsets in part a, b and f are indecimal)     concert to hex 20=x'14',   15=x'F',    30=x'1E' mov ax,[bx+30]                    10+1E=2E    1. mov ax,[bx+20]         10+14=24    2. mov ax,[bx+label]       10+124=134    3. mov ax,[label+bx]       124+10=134    4. mov ax,[bx+si]            10+F1=101    5. mov ax,[si+15]            F1+F=100