Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need In 1 hour 05 org 100h 06 07.data 08 09 vart dw 2 10 var2 dw 67, 45, 34, 33 dw 45, 43, 67,

image text in transcribed

Need In 1 hour

05 org 100h 06 07.data 08 09 vart dw 2 10 var2 dw 67, 45, 34, 33 dw 45, 43, 67, 44 var3 dw 5 dup (0) 14 .code 15 nain proc movax, edata 18 mov ds, ax 19 20 nov si, 6 27 rep: 23 nov cx, 2 2 x0r bx, bx 25 Xorax, ax 26 4 28 29 add ax, var2 [BX+SI ) 30 add BX, 8 31 loop for 33 xor dx, dx 34 div vari 35 nov var3 [SI], ax 36 sub si, 2 37 jnl rep 1 39 nov ah, 4ch 49 int 21h 41 42 main endp 44 end main 45 46 ret 27 for: 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] (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

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

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

Explain corporate sustainability.

Answered: 1 week ago

Question

Understand the role of corporate design in communications.

Answered: 1 week ago