java 数字字母进位
Problem statement:
问题陈述:
Multiplication of two 8 bits numbers using 8085 microprocessor with carry.
使用带有进位的8085微处理器将两个8位数字相乘。
Algorithm:
算法:
- Load HL pair with initial data using LHLD command. - 使用LHLD命令向HL对加载初始数据。 
- Exchange the data of HL and DE pair using XCHG command. - 使用XCHG命令交换HL和DE对的数据。 
- Copy the data of register D into Register C. - 将寄存器D的数据复制到寄存器C。 
- Now initialize register D with 0. - 现在将寄存器D初始化为0。 
- Also initialize HL pair with 0 using LXI command. - 还可以使用LXI命令将HL对初始化为0。 
- Use the DAD command to add the data of DE pair into the data of HL pair and store in HL Pair. - 使用DAD命令将DE对的数据添加到HL对的数据中并存储在HL Pair中。 
- Decrease the value of C by one. - 将C的值减一。 
- Check if the result from previous instruction resets the zero flag and if true, jump to address XXX. - 检查前一条指令的结果是否重置了零标志,如果为真,则跳转到地址XXX。 
- Store the content of the HL pair into desired location. - 将HL对的内容存储到所需位置。 
- Stop. - 停止。 
Program:
程序:
	LHLD 2050	
XCHG		
MOV C, D	
MVI D 00	
LXI H 0000	
xxx	DAD D		
DCR C		
JNZ 200A	
SHLD 3050	
HLT
Observation:
观察:
    INPUT: 
2050:43
2051:07
OUTPUT: 
3050:D5
3051:01
Hence successfully multiplied two 8 bits numbers with carry using 8085 microprocessor..
因此,使用8085微处理器成功地将两个8位数字乘以进位。 。
翻译自: https://www.includehelp.com/embedded-system/multiplication-of-two-8-bits-numbers-using-8085-microprocessor-with-carry.aspx
java 数字字母进位