欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

汇编:ADD

程序员文章站 2022-06-04 11:01:50
...

 

The add instruction, like it’s x86 counterpart, adds two values on the 80x86. This instruction takes several forms. There are five forms that concern us here. They are:

add reg, reg
add reg, memory
add memory, reg
add reg, constant
add memory, constant

All these instructions add the second operand to the first leaving the sum in the first operand. For example, add bx,5 computes bx := bx + 5.