Question: .data 08 09 var1 dw 2 10 var2 dw 67, 45, 34, 33 11 dw 45, 43, 67, 44 12 var3 dw 5 dup (0)

 .data 08 09 var1 dw 2 10 var2 dw 67, 45,

.data 08 09 var1 dw 2 10 var2 dw 67, 45, 34, 33 11 dw 45, 43, 67, 44 12 var3 dw 5 dup (0) 13 14 .code 15 16 main proc 17 mov ax, edata 18 mov ds, ax 19 20 mov si, 6 21 22 rep: 23 nov CX, 2 24 xor bx, bx 25 xOr ax, ax 26 27 for: 28 29 add ax, var2 [BX+SI 1 30 add BX, 8 31 loop for 32 33 xor dx.dx 34 div var1 35 nov var3[SI], ax 36 sub si, 2 37 jnl rep 1 38 39 nov ah, 4ch 40 int 21h 41 42 main endp 43 44 end main 45 46 ret NOTE: Answer each question based on your own understanding and with proper reasoning. (a) Write each addressing mode used in instructions mentioned in LINE 29, 30, 35, 34. Also state reasoning. )(b) Assume offset address of variables used in this code. Based on your used assumed addresses show how these variables are stored in memory. (Do not use emulator for this part) [4], (c) Do this task using stack instead of array. [10]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!