Question: 2 . What are the values stored in ( A R R 1 ) and ( A R R 2 )

2. What are the values stored in \( A R R 1\) and \( A R R 2\) after the execution of the following program? Write the contents of ARR1 and ARR2 in the tabular format. (instruction only a table with 2 rows (for ARR1 and ARR2) and no. of columns (as per the size of array) should be in answer. Only the table will be evaluated.
ORG 100H
JMP START
ARR DB 0AH,3,0FH,0CH,2,9,6,0EH,0EH,5
ARR1 DB 10 DUP(?)
ARR2 DB 10 DUP(?)
START:
LEA BX, ARR
LEA SI, ARR1
LEA DI, ARR2
MOVCX,10
MOV DH,02
L1:
MOV AH,00
MOV AL,[BX]
MOV DL, AL
DIV DH
CMP AH,00
JZ EVENT
MOV [DI], DL
INC DI
INC BX
LOOP L1
JMP EXIT
EVENT:
MOV [SI], DL
INC SI
INC BX
LOOP L1
EXIT: HLT
Solution:
2 . What are the values stored in \ ( A R R 1 \ )

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 Programming Questions!