Chapter 5 & 6 Flashcards
PUSHFD and POPFD
Push and pop the EFLAGS register
PUSHAD and POPAD
Push and pop the 32-bit general purpose regs
PUSHA and POPA
Push and pop the 16-bit general purpose regs
Creating a Procedure
sample PROC
…
…
sample ENDP
Call Instruction
Pushes offset of the next instruction on the stack
Copies the address of the called procedure into EIP
Ret Instrucfion
Pops top of stack into EIP
Test Instruction
Performs non destructive AND operation between each pair or matching bits in two operands
AND Instruction
Turns bits off
OR Instruction
Turns bits on
NOT Instruction
Inverts the entire byte, 0 will become 1, etc.
CMP Instruction
Nondestructive subtraction of source from destination
Destination operand not changed
Sets flags to then use conditional jumps
LOOPZ & LOOPE
Loop if zero, loop if equal
Useful for searching arrays