|
The OP
Published on 2009-12-16 23:28
Only look at the author
This post is from MCU
Latest reply
8086. I haven't touched it for a long time. I'll take a seat. I'll read the manual first and then reply to you. First of all, this is the 8086 accumulative multiplication operation. So for a multiplication A*B, it means adding A for B times in a loop. There is a problem here. Address. First of all, the memory is located. For example, a 16-bit multiplier. An address space is 16 bits 0xFFFF. At this time, if a carry is generated when adding two numbers, where should the carry be placed? Of course, it should be placed in the next address space. The role of this ADC DX,0; is to automatically offset the ADD instruction with carry addition. A carry is generated after addition. The role of ADC is to introduce a carry. That is to say, DX+0+CF, so that when there is a carry, the automatic offset is increased by one. This way, each carry can be saved to the offset address. You can try it. Remove the sentence ADC DX,0;. You can only get a 16-bit number in the end. But 16 bits multiplied by 16 bits should produce a 32-bit number. [ This post was last edited by leang521 on 2009-12-17 10:40 ]
Details
Published on 2009-12-17 10:14
| ||
|
|
||
|
2
Published on 2009-12-17 09:25
Only look at the author
This post is from MCU
| ||
|
Personal signature*我的EMAIL: sunke9@qq.com
*我的博客http://blog.ednchina.com/sunke9/ *我网店:https://sunke9.taobao.com/ 承接:电子、自动控制产品设计开发;单片机、ARM编程。 |
||
|
|
|
njlianjian
Currently offline
|
3
Published on 2009-12-17 09:28
Only look at the author
This post is from MCU
| |
|
|
||
|
|
|
tiankai001
Currently offline
|
4
Published on 2009-12-17 09:59
Only look at the author
This post is from MCU
| |
|
|
||
|
|
|
5
Published on 2009-12-17 10:14
Only look at the author
This post is from MCU
| ||
|
|
||
|
|
在下载中心贡献超过4000份资料
EEWorld Datasheet Technical Support
EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building,
Block B, 18 Zhongguancun Street, Haidian District,
Beijing 100190, China
Tel:(010)82350740
Postcode:100190
京公网安备 11010802033920号

