大会ADC(带进位加法),以C ++ [英] Assembly ADC (Add with carry) to C++
本文介绍了大会ADC(带进位加法),以C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一个汇编指令 ADC
。我发现,这意味着添加带进位。但我不知道是什么的是的意思。或如何编写C ++该指令。我知道这是不一样的添加
。所以做一个简单的总结是不正确的。
There is an assembly instruction ADC
. I've found this means "Add with carry". But I don't know what that means. Or how to write this instruction in C++. And I know it isn't the same as ADD
. So making a simple summation is not correct.
信息:结果
编译在Windows中。我使用的是32位Windows安装。我的处理器是酷睿2双核英特尔。
INFO:
Compiled in Windows. I'm using a 32-bit Windows Installation. My processor is Core 2 Duo from Intel.
推荐答案
ADC是一样的,但ADD增加了一个额外1,如果处理器的进位标志设置。
ADC is the same as ADD but adds an extra 1 if processor's carry flag is set.
这篇关于大会ADC(带进位加法),以C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文