mysql查找最大值最小值_查找两个8位数字的最大值| 8086微处理器

mysql查找最大值最小值

Problem statement:

问题陈述:

To find maximum of two 8-bit numbers using 8086 Microprocessor.

使用8086微处理器查找最多两个8位数字。

Algorithm:

算法:

  1. Move the first number to register AL.

    移动第一个数字以注册AL。

  2. Move the second number to register BL.

    移动第二个数字以注册BL。

  3. Compare the content of register AL and BL if not carry goto step 5 otherwise goto step 4.

    比较寄存器AL和BL的内容(如果不执行转到步骤5,否则转到步骤4)。

  4. Move the content of register BL to the register AL.

    将寄存器BL的内容移至寄存器AL。

  5. 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查找最大值最小值

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值