Question: 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

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!