Team LiB
Previous Section Next Section

Appendix B: Common x86 Instructions

Reading the Tables

The tables of instructions presented in this appendix include:

In the operands section, it will list the type of operands it takes. If it takes more than one operand, each operand will be separated by a comma. Each operand will have a list of codes which tell whether the operand can be an immediate-mode value (I), a register (R), or a memory address (M). For example, the movl instruction is listed as I/R/M, R/M. This means that the first operand can be any kind of value, while the second operand must be a register or memory location. Note, however, that in x86 assembly language you cannot have more than one operand be a memory location.

In the flags section, it lists the flags in the %eflags register affected by the instruction. The following flags are mentioned:

O

S

Z

A

P

C

Other flags exist, but they are much less important.


Team LiB
Previous Section Next Section