Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Given the following assembly code, determine the correct value of each assigned register. Assume the data segments begins at 00404010h. [Answer format: Hexadecimal value for

Given the following assembly code, determine the correct value of each assigned register. Assume the data segments begins at 00404010h.

[Answer format: Hexadecimal value for each register should have h (for hexadecimal) at the back. E.g. let's say the value for register AH is 3, so the answer in the box must be typed in as 3h]

.data 
Array1 byte 10h, 20h, 35h 
Array2 word 25h, 1A20h, 66h, 891h 
.code 
main proc
;Calling array method 1 
mov esi,OFFSET Array1 ;
ESI = 
00404010
mov al, [esi] ; 
AL = 
Answer
add esi,1 ; 
ESI = 
Answer
mov bl, [esi] ; 
BL = 
Answer
mov esi,OFFSET Array2 ; 
ESI = 
Answer
mov ax, [esi] ; 
AX = 
Answer
add esi,2 ; 
ESI = 
Answer
mov bx, [esi] ; 
BX = 
1A20
;Calling array method 2 
mov al, Array1 ; 
AL = 
Answer
mov bl, Array1+1 ; 
BL = 
Answer
mov ax, Array2 ; 
AX = 
0025
mov bx, Array2+2 ; 
BX = 
Answer

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions