mysql查找最大值最小值_查找两个8位数字的最大值| 8086微处理器
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, BLJNC **MOV AL, BL** MOV [0602], ALHLTObservation:
觀察:
INPUT: 0600: 120601: 21OUTPUT: 0602: 21Hence 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查找最大值最小值
總結
以上是生活随笔為你收集整理的mysql查找最大值最小值_查找两个8位数字的最大值| 8086微处理器的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 1补码 2补码_8085微处理器中8位数
- 下一篇: dates.format_在SQL中使用