<<< | Index | AAA Adjust AL after BCD Addition >>> |
When an instruction takes two operands, the destination operand is the one on the left, and the source operand is the one on the right. In general, when a result is produced by an instruction, the result replaces the destination operand. For example, in this instruction:
ADD BX,SI
the BX register is added to the SI register, and the sum is then placed in the BX register, overwriting whatever was in BX before the addition.
Each instruction contains a flag summary that looks like this (the asterisks will vary from instruction to instruction):
O D I T S Z A P C OF: Overflow flag TF: Trap flag AF: Aux carry F F F F F F F F F DF: Direction flag SF: Sign flag PF: Parity flag * * * * * * IF: Interrupt flag ZF: Zero flag CF: Carry flag
The nine flags are all represented here. An asterisk indicates that the instruction on that page affects that flag. If a flag is affected at all (that is, if it has an asterisk beneath it), it will be affected according to these rules:
Some instructions force certain flags to become undefined. When this is the case, it is noted under "Notes." Undefined means don't count on it being in any particular state.
<<< | Index | AAA Adjust AL after BCD Addition >>> |