Question: When ebx is 5, the following statement sets the SF (PL) FLAG to _______ cmp ebx, 5 .586 .MODEL FLAT .STACK 4096 .DATA .CODE main

  1. When ebx is 5, the following statement sets the SF (PL) FLAG to _______

cmp ebx, 5

.586

.MODEL FLAT

.STACK 4096

.DATA

.CODE

main PROC

mov ebx, 0 ; number := 0

mov eax, 0 ; sum := 0

label1: inc ebx ; add 1 to number

add eax, ebx ; add number to sum

cmp ebx, 5

jle label1

main ENDP

END

  1. 1
  2. 0
  3. -1
  1. When ebx is 1, the following statement sets the ZR FLAG to _______

cmp ebx, 5

.586

.MODEL FLAT

.STACK 4096

.DATA

.CODE

main PROC

mov ebx, 0 ; number := 0

mov eax, 0 ; sum := 0

label1: inc ebx ; add 1 to number

add eax, ebx ; add number to sum

cmp ebx, 5

jle label1

main ENDP

END

  1. 1
  2. 0
  3. -1

  1. The following statement causes the ESP register to contain _________.

push ebx

Before Instruction executed:

EBX: 22 33 44 55

ESP: 00 10 20 1C

  1. 00 10 20 20
  2. 00 10 20 1C
  3. 00 10 20 18

  1. The following statement causes the ESP register to contain _________.

ret

Before Instruction executed:

EBX: 22 33 44 55

ESP: 00 10 20 1C

  1. ESP: 00 10 20 20
  2. ESP: 00 10 20 1C
  3. ESP: 00 10 20 18

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!