Computer Science, asked by junNi147, 7 months ago

(Assume the CS=0128H, DS=A200H, SS=7238H, ES=3100H)
STD
MOV AL,10
MOV CX, 3
MOV DI, 0237H
REPNE SCASB

ADDRESS DATA

31235H 10
31236H 15
31237H 25
31238H 38
31239H 58

Q. 1)The value stored in the CX register after the above code snippet executes:
a) 0 b) 1 c)2 d) 3

Q. 2)The value stored in the register DI after the above code snippet executes:
a) 0237H b) 0235H c) 0239H d) 0234H

Q. 3) The value of the direction flag after the above code snippet exicutes:
a) 1 b) 0 c) unaltered d) can't determine

Q. 4) The instruction REPNE SCASB, as shown above cases
a) A software loop, wherein the instruction translates into several lines of machine code.
b) A hardware loop, wherein the instruction finishes in one shot and only then moves on to the next instruction.
c) A one-time comparison between the register AL and the data at the location pointed by DI.
d) An infinite loop that checks the entire memory for a match with AL

Q. 5) In case a match is NOT FOUND until CX=0 in the above code snippet, then
a) It causes the program to stop and resits the IP to the start of the program.
b) inverts the direction flag and causes the program to start.
c) Gets stuck in an infinite loop.
d) Proceeds with the next instruction to be exicuted.

Answers

Answered by amritmaheru03
0

Answer:

what is this

Explanation:

mark me as brainliest answers please

Answered by pujasovan8
0

Answer:

Google sherc

i don't no

Similar questions