Chapter 5 & 6 Flashcards

1
Q

PUSHFD and POPFD

A

Push and pop the EFLAGS register

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

PUSHAD and POPAD

A

Push and pop the 32-bit general purpose regs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

PUSHA and POPA

A

Push and pop the 16-bit general purpose regs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Creating a Procedure

A

sample PROC


sample ENDP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Call Instruction

A

Pushes offset of the next instruction on the stack

Copies the address of the called procedure into EIP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Ret Instrucfion

A

Pops top of stack into EIP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Test Instruction

A

Performs non destructive AND operation between each pair or matching bits in two operands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

AND Instruction

A

Turns bits off

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

OR Instruction

A

Turns bits on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

NOT Instruction

A

Inverts the entire byte, 0 will become 1, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

CMP Instruction

A

Nondestructive subtraction of source from destination

Destination operand not changed

Sets flags to then use conditional jumps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

LOOPZ & LOOPE

A

Loop if zero, loop if equal

Useful for searching arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly