Assignment Question_1: [marks: 6] What is the effective address generated by eac
ID: 3610178 • Letter: A
Question
Assignment
Question_1: [marks: 6]
What is the effective address generated by each of the followinginstruction?
Initially BX=0x0010,label=0x0124, [label]=0x0001, andSI=0x00F1
(Offsets in part a, b and f are in decimal)
Question_2: [marks: 6]
Calculate the physical memory address generated by the followingsegment offset pairs (both are hexadecimal values).
Question_3: [marks: 5+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 part 1 Initially BX=0x0010, label=0x0124, [label]=0x0001, andSI=0x00F1 (Offsets in part a, b and f are indecimal) convert 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
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.