Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
23 Cards in this Set
- Front
- Back
What is an immediate operand?
|
a constant value or the result of a constant expression.
|
|
What is a register operand?
|
refers to data stored in registers. The register name is converted to a number and encoded within the instruction
|
|
What is a memory operand?
|
a reference to a location in memory. The memory address is encoded within the instruction, or a register holds the address of a memory location
|
|
What is a direct operand?
|
a named reference to storage in memory (a fixed memory location)
|
|
What is the syntax of a MOV instruction?
|
mov destination, source
|
|
In a MOV instruction, how many memory operands are permitted?
|
one
|
|
In a MOV instruction, can the operands be different sizes?
|
no
|
|
T or F:
The following is a permitted MOV instruction. mov eip, count |
FALSE
EIP is not a valid destination register |
|
T or F:
The following is a permitted MOV instruction. mov 56, count |
FALSE
an immediate operand cannot be a destination |
|
T or F:
the MOVZX instruction, the destination must be a register. |
TRUE
|
|
T or F:
The MOVZX instruction permits the source and destination to be different sizes. |
TRUE
the destination must be equal to or larger than the source |
|
When you copy a smaller value into a larger destination, the MOVZX instruction fills the upper half of the destination with _____ .
|
0s
|
|
T or F:
A signed value can be the source when using a MOVZX instruction. |
FALSE
the source must be unsigned, and the destination must be a register |
|
What is the difference between MOVZX and MOVSX?
|
MOVZX is for unsigned sources, and MOVSX is for signed sources
|
|
When you copy a smaller value into a larger destination, the MOVSX instruction fills the upper half of the destination with _____ .
|
1s
|
|
T or F:
An unsigned value can be the source when using a MOVSX instruction. |
FALSE
the source must be signed, and the destination must be a register |
|
When would you use MOVSX instead of MOV?
|
When the source and destination are unequal in size
|
|
T or F:
The MOVSX instruction permits the source and destination to be different sizes. |
TRUE
the destination must be equal to or larger than the source |
|
What does the XCHG instruction do?
|
exchanges the values of two operands
|
|
What are the operand restrictions of XCHG?
|
at least one operand must be a registry, no immediate operands are permitted, and operands must be the same size
|
|
What is the notation for an 8-bit registry operand?
|
reg8
|
|
What is the notation for an immediate value operand?
|
imm
|
|
What is the notation for a memory operand?
|
mem
|