Notation convention: S - source operand D - Destination operand Form: addl S, D Effect: D = D + S
Instruction | Effect |
---|---|
addl $4, %eax | R[%eax] = R[%eax] + 4 |
addl %esi, (%eax) | M[ R[%eax] ] = M[ R[%eax] ] + R[%esi] |
addl (%eax), %esi | R[%esi] += M[ R[%eax] ] |
Note:
addl %eax, $4
is not allowed. $4 cannot be a destination operand!