(Assume the CS-0128H, DS-A200H, SS=7238H, ES=3100H)
MOV EAX, 1
MOV ECX, [0235H]
REPEATAG: MUL ECX
DEC ECX
CMP ECX,1
JNE REPEATAG
ADDRESS DATA
A2235H 4
A2236H 5
A2237H 6
A2238H 7
A2239H 3
Q) The above Assembly Code is intended to perform which of the following operations:
i) Perform Linear Search in the array starting from address location A2235H
2) Perform Binary Search in the array starting from address location A2235H
3) Compute the factorial of the number present in the address location A2235H
4) Perform Linear Sort of the array starting from address location A2235H
Answers
Answered by
3
Explanation:
(Assume the CS-0128H, DS-A200H, SS=7238H, ES=3100H)
MOV EAX, 1
MOV ECX, [0235H]
REPEATAG: MUL ECX
DEC ECX
CMP ECX,1
JNE REPEATAG
ADDRESS DATA
A2235H 4
A2236H 5
A2237H 6
A2238H 7
A2239H 3
Similar questions