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;
9 Cards in this Set
- Front
- Back
Immediate
|
(operand type) - a constant integer(8, 16, or 32 bits)
- value is encoded within the instruction -Notation: imm, imm8, imm16, imm32 |
|
Register
|
(operand type) - the name of a register
- register name is converted to a number and encoded within the instruction - reg8, reg16, reg32, reg, sreg (segment register) |
|
Memory
|
(operand type) - reference to a location in memory
- memory address is encoded within the instruction, or a register holds the address of a memory location - mem, reg/mem8,16, or 32 |
|
MOV instruction syntax
|
MOV destination, source
|
|
MOV rules
|
-No more than one memory operand permitted
-Both operands must be same size -EIP cannot be a destination register -Destination cannot be an immediate operand. |
|
MOVZX
|
-When copying a smaller value into a larger destination, this operand instruction fills (extends) the upper half of the deestination with zeros.
-For unsigned only -Destination must be a register |
|
MOVSX
|
-fills the upper half of the destination with a copy of the source operand's sign bit.
-For signed only -Destination must be a register |
|
XCHG
|
-exchanges the values of two operands.
|
|
XCHG rules
|
- At least one operand must be a register.
- No immediate operands are permitted. -Operands must be of the same size |