shell两个数字相乘
Problem statement:
问题陈述:
To perform multiplication operation between 2 16bit numbers with carry using 8086 Microprocessor.
使用8086微处理器在2个16位数字之间进行带进位的乘法运算。
Algorithm:
算法:
-
Load the first data into register AX from memory.
从存储器将第一个数据加载到寄存器AX中。
-
Load the second data into register BX from memory.
将第二个数据从内存加载到寄存器BX中。
-
Multiply content of register BX with the content of register AX.
将寄存器BX的内容与寄存器AX的内容相乘。
-
Now load the result value from AX to memory.
现在将结果值从AX加载到内存。
-
Move data from DX to AX.
将数据从DX移动到AX。
-
Now Load the data from AX to memory.
现在,将数据从AX加载到内存。
Program:
程序:
MOV AX, 2050MOV BX, 2052MUL BXMOV 2054, AXMOV AX, DXMOV 2056, AXHLT
[/code]
Observation:
观察:
INPUT:2050:042051:032052:072053:08OUTPUT:2054:002055:1C2056:35
[/code]
Hence we successfully multiplied two 16 bits numbers using carry.
因此,我们成功地使用进位将两个16位数字相乘 。
翻译自: https://www.includehelp.com/embedded-system/multiplication-of-two-16-bits-numbers-without-carry-using-8086-microprocessor.aspx
shell两个数字相乘