數字圖像處理圖像反轉的實現
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
數字圖像處理圖像反轉的實現