Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The flag names as shown by Visual Studio in the Registers window are the same as

ID: 3814915 • Letter: T

Question

The flag names as shown by Visual Studio in the Registers window are the same as the names in the book. True False What will be the final value in EDX after this code executes? mov edx.1 mov eax, 7FFFh cmp eax, 8000h jb L1 mov edx, 0 L1: The assembly code shown below will produce the same result as the C code. C Code: arraySize = 4096; if (larger) arraySize = 8192: Assembly Code: mov arraySize, 4096 cmp larger, 0 jne Next mov arraySize, 8192 Next: True False The JAE instruction jumps if the (unsigned) first operand is greater than or equal in magnitude to the (unsigned) second operand.

Explanation / Answer

4) False

Register window can be represented as the index of a book.

5)0

Since the edx value became 1 after the first move the jb instruction will execute.After entering into loop, the value of edx will change.but at the end of loop, the command mov edx,0 makes the value of edx as 0.

6)False

In C, the output is the larger number.If(larger) will check weather the numer is larger from the entered number.

JNE means Jump Not Equal.This will give the second number if its not equal to first number. No checking is carried out to find the larger number.

6)False

JAE means Jump Above Equal. The loop starts only if the value is equal to above number.It is notthe 'greater than' condition.That is JAE will execute if the first operand is equal to the magnitude of the second.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote