汇编两数相减怎么判断进位
Problem statement:
问题陈述:
To perform subtraction operation between 2 16bit numbers without carry using 8086 Microprocessor.
使用8086微处理器在两个16位数字之间执行减法运算而无需进位。
Algorithm:
算法:
Load the first data into register AX from memory.
从存储器将第一个数据加载到寄存器AX中。
Load the second data into register BX from memory.
将第二个数据从内存加载到寄存器BX中。
Subtract content of register BX with the content of register AX.
用寄存器AX的内容减去寄存器BX的内容。
Now load the result value from AX to memory.
现在将结果值从AX加载到内存。
Program:
程序:
MOV AX, 2050
MOV BX, 2052
SUB AX, BX
MOV 2054, AX
HLT
Observation:
观察:
INPUT:
2050:03
2051:03
2052:03
2053:03
OUTPUT:
2052:00
2053:00
Hence we successfully subtracted two 16 bits numbers without using carry.
因此,我们成功地减去了两个16位数字,而没有使用进位 。
汇编两数相减怎么判断进位