Seperate Lower Nibble And Upper Nibble in 8085 Microprocessor
AIM
To create an 8085 program to seperate the lower and upper nibble of a number.
ALGORITHM
1. Start
2. Load a number to the accumulator.
3. Logically AND the content of the accumulator with the OF.
4. Store the accumulator content to a memory location.
5. Logically AND the content of the accumulator with the FO.
6. Rotate accumulator content.
7. Rotate accumulator content.
8. Rotate accumulator content.
9. Rotate accumulator content.
10.Store the accumulator content to a memory location.
11. Halt.
PROGRAM
MEMORY ADDRESS MNEUMONICS HEXCODE
2000 LDA 2500 3A,00,25
2003 ANI OF E6, OF
2005 STA 2501 32,01,25
2008 LDA 2500 3A,00,25
200B ANI FO E6, F0
200D RRC OF
200E RRC OF
200F RRC OF
2010 RRC OF
2011 STA 200F 32,0F,20
2014 HLT 76
Comments
Post a Comment