Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3: [4+ 4+ 10 = 18 Marks] : : 85 org 100h 96 82.data 08 99 vart dw 2 10 var2 dw 67. 15,

image text in transcribed

Question 3: [4+ 4+ 10 = 18 Marks] : : 85 org 100h 96 82.data 08 99 vart dw 2 10 var2 dw 67. 15, 34, 33 11 12 var3 dw 5 dupe 13 14 code 15 16 main proc novax, edata nov ds. ax 19 20 nov si, 6 21 22 rep! 23 nov cx, 2 24 xor bx, bx 25 XOP ax, ax 26 for: 29 add ax, var2 [BX+SI) 39 add BX 8 31 loop for 32 33 xor dx.dx 34 div var 1 35 Roy var3[SI], ax 36 sub si, 2 32 nl rep . 38 39 POV ah, 4ch 40 int 21h 41 42 nain endp 43 44 end na in 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. [4] (6) 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions