Chapter Reviews- Ch. 6: Conditional Processing

¡Supera tus tareas y exámenes ahora con Quizwiz!

What will be the value of RBX after the following instructions execute? mov rbx,0FFFFFFFFFFFFFFFFh and rbx,80808080h

0000000080808080h

What will be the value of RBX after the following instructions execute? mov rbx,0FFFFFFFFFFFFFFFFh and rbx,808080h

0FFFFFFFFFF808080h

What will be the value of RBX after the following instructions execute? mov rbx,0FFFFFFFFFFFFFFFFh and rbx,80h

0FFFFFFFFFFFFFF80h

In the following instruction sequence, show the resulting value of AL where indicated, in binary: mov al,01101111b and al,00101101b ; a. mov al,6Dh and al,4Ah ; b. mov al,00001111b or al,61h ; c. mov al,94h xor al,37h ; d.

AL = 2Dh, 48h, 6Fh, A3h

In the following instruction sequence, show the resulting value of AL where indicated, in hexadecimal: mov al,7Ah not al ; a. mov al,3Dh and al,74h ; b. mov al,9Bh or al,35h ; c. mov al,72h xor al,0DCh ; d.

AL = 85h, 34h, BFh, AEh

What will be the value of BX after the following instructions execute? mov bx,0FFFFh and bx,6Bh

BX = 006Bh

What will be the value of BX after the following instructions execute? mov bx,0649Bh or bx,3Ah

BX = 064BBh

What will be the value of BX after the following instructions execute? mov bx,91BAh and bx,92h

BX = 092h

What will be the value of BX after the following instructions execute? mov bx,029D6h xor bx,8181h

BX = A857h

What will be the value of EBX after the following instructions execute? mov ebx,0AFAF649Bh or ebx,3A219604h

EBX = BFAFF69Fh

What will be the final value in EDX after this code executes? mov edx,1 mov eax,7FFFh cmp eax,0FFFF8000h jl L2 mov edx,0 L2:

EDX = 0

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:

EDX = 1

What will be the final value in EDX after this code executes? mov edx,1 mov eax,7FFFh cmp eax,8000h jl L1 mov edx,0 L1:

EDX = 1

How are JA and JNBE affected by the Zero and Carry flags?

JA and JNBE jump to the destination if ZF = 0 and CF = 0.

Which conditional jump instruction executes a branch based on the contents of ECX?

JECX

What will be the value of RBX after the following instructions execute? mov rbx,0AFAF649Bh xor rbx,0FFFFFFFFh

RBX = 0000000050509B64h

(True/False): The following code will jump to the label named Target. mov eax,-30 cmp eax,-50 jg Target

True

(True/False): The following code will jump to the label named Target. mov eax,-42 cmp eax,26 ja Target

True

In the following instruction sequence, show the values of the Carry, Zero, and Sign flags where indicated: mov al,00001111b test al,00000010b ; a. mov al,00000110b cmp al,00000101b ; b. mov al,00000101b cmp al,00000111b ;c.

a. CF=0 ZF=0 SF=0 b. CF= 0 ZF= 0 SF=0 c. CF= 1 ZF= 0 SF=1


Conjuntos de estudio relacionados

Business Ethics 10th Ed. Ferrell

View Set

ITN 261 Final Exam (Chapter 15-19)

View Set