mysql查找最大值最小值
Problem statement:
问题陈述:
To find maximum of two 8-bit numbers using 8086 Microprocessor.
使用8086微处理器查找最多两个8位数字。
Algorithm:
算法:
Move the first number to register AL.
移动第一个数字以注册AL。
Move the second number to register BL.
移动第二个数字以注册BL。
Compare the content of register AL and BL if not carry goto step 5 otherwise goto step 4.
比较寄存器AL和BL的内容(如果不执行转到步骤5,否则转到步骤4)。
Move the content of register BL to the register AL.
将寄存器BL的内容移至寄存器AL。
Move the content of register AL to the memory location.
将寄存器AL的内容移至存储位置。
Program:
程序:
MOV AL, [0600]
MOV BL, [0601]
CMP AL, BL
JNC **
MOV AL, BL
** MOV [0602], AL
HLT
Observation:
观察:
INPUT:
0600: 12
0601: 21
OUTPUT:
0602: 21
Hence successfully find the maximum of two 8-bit numbers using 8086 Microprocessor.
因此, 可以使用8086 Microprocessor成功找到两个8位数字中的最大值 。
翻译自: https://www.includehelp.com/embedded-system/find-the-maximum-of-two-8-bit-numbers-using-8086-microprocessor.aspx
mysql查找最大值最小值