Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write program that will accomplish the desired tasks listed below, using few lines of code as possible. Define Data1 and Data2 in the data segment

Write program that will accomplish the desired tasks listed below, using few lines of code as possible.

  • Define Data1 and Data2 in the data segment at offset 500h and 600h and store the following values in them:

Data1 DB 22h, 33h, 1Ah, 3Fh

Data2 DB 10h, 20h, 5Bh, 3Ah

  • Use the register indirect addressing mode to initialize the content of memory location labeled Data1 at offset 500h by the value 1000H.

  • Use the based index addressing mode to move into register CX the content of the memory location at offset 602h and 603h.

  • Use indexed addressing mode to move the contents of register CX into memory location starting at offset 501h

kindly solve part B using microsoft visual studio as soon as possible (URGENT DUE SOON)

Ignore part A

image text in transcribedimage text in transcribed

Part B Write program that will accomplish the desired tasks listed below, using few lines of code as possible. Define Datal and Data2 in the data segment at offset 500h and 600h and store the following values in them: Data1 DB 22h, 33h, 1Ah, 3Fh Data2 DB 10h, 20h, 5B, 3Ah Use the register indirect addressing mode to initialize the content of memory location labeled Datal at offset 500h by the value 1000H. . Use the based index addressing mode to move into register CX the content of the memory location at offset 602h and 603h. Use indexed addressing mode to move the contents of register CX into memory location starting at offset 50161 Part A: Using the following code on visual studio, fill in the table with the required data. .386 . model flat,stdcall .stack 4096 ExitProcess scate.dwexitcode:duorg .data ORG 600h Datal DB 2Ah, 3Bh, 10h, 3Fh ORG 700h Data2 DB 11h, 22h, 5Bh .code main proc mov dx, 55AAH mov cx, dx mov sbx, offset Datal mov ax, word atriebx] mov cx, word gtr [ebx + 2h] movesi, offset Data2 + 1h mov di, byte atresil mov ebx, 1h mov dh, byte Rtr [esi + ebx] call ExitPrecess. main ends end

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

More Books

Students also viewed these Databases questions