Micro processor Lab Manual / Convert packed BCD to unpacked BCD ALP

Program Name

Write a Assembly Language Program for Convert packed BCD to unpacked BCD .
Theory
Instruction Mnemonic Operand Comments
LDA 8100 Load contents of 8100 to acquire input
ANI 0F Perform And operation of input with 0F
STA 8300 Store result at 8300
LDA 8100 Load contents of 8100 to accumulator
ANI F0 Perform and operation of accumulator with F0
RRC 8200 Rotate accumulator right through carry
RRC Rotate accumulator right through carry
RRC Rotate accumulator right through carry
RRC Rotate accumulator right through carry
STA 8301 Store result in 8301
HLT Stop
Program Code


Online compiler for 8085 Microprocess Compiler


Home     Back