数字图像处理图像反转的实现
Problem statement:
问题陈述:
To reverse 8 bits number using 8085 microprocessors.
使用8085微处理器反转8位数字。
Algorithm:
算法:
Load the accumulator with the first data.
向累加器加载第一个数据。
Use RLC instruction to shift contain of accumulator by 1 bit without carry. Use this 4 times to reverse the contain of accumulator.
使用RLC指令可将累加器的包含无位移1位。 使用此4次来反转累加器的包含。
Now load the result value in memory location.
现在将结果值加载到内存位置。
Program:
程序:
LDA 2050
RLC
RLC
RLC
RLC
STA 3050
HLT
Observation:
观察:
INPUT:
2050:05
OUTPUT:
3050:50
Hence, we successfully reversed 8 bits number.
因此,我们成功地反转了8位数字 。
翻译自: https://www.includehelp.com/embedded-system/reverse-an-8-bits-number-using-8085-microprocessor.aspx
数字图像处理图像反转的实现