当前位置:网站首页>arithmetic operation

arithmetic operation

2022-07-06 17:02:00 My71

Link to the original text —— SevenOne’Blog

Add instruction ADD

function

Sum the destination operand and the source operand , The final operation result is stored in the destination operand .

usage

add Instructions are equivalent to high-level languages +=

add a,b  ==>  a += b

Code implementation

Incremental instruction INC

function

The destination operand is +1 operation .

Code implementation

Subtraction instructions SUB

function

Subtract the destination operand from the source operand , The final operation result is stored in the destination operand .

usage

sub Instructions are equivalent to high-level languages -=

sub a,b  ==>  a -= b

Code implementation

Minus instruction DEC

function

The destination operand is -1 operation .

Code implementation

原网站

版权声明
本文为[My71]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060922438664.html