shell两个数字相乘_使用逻辑指令将两个8位数字相乘

shell两个数字相乘

Problem statement:

问题陈述:

To perform multiplication operation between two 8 bits numbers using logical instructions on 8085 microprocessor.

使用8085微处理器上的逻辑指令在两个8位数字之间执行乘法运算。

Algorithm:

算法:

  1. Load first number in accumulator.

    将第一个数字加载到累加器中。

  2. Move the content of accumulator in register B.

    将累加器的内容移到寄存器B中。

  3. Load the second number in accumulator.

    将第二个数字加载到累加器中。

  4. Rotate the accumulator left without carry.

    向左旋转蓄能器,不带进位。

  5. Repeat step 4.

    重复步骤4。

  6. Store the result in memory.

    将结果存储在内存中。

  7. HLT.

    HLT。

Program:

程序:

	LDA     2050
	MOV     B, A
	LDA     2051
	RLC
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值