Saturday, 26 March 2011

Parity checker program in 8085 microprocessor

Below is the program of parity checker in 8085 microprocessor which is successfully executed.Here i am checking the parity of number 05.

MVI A,05H       (MOVING 05 TO ACCUMULATOR)

MVI B,08H        (THERE IS 8 BIT NUMBER SO INITIALIZING B TO 08)

MVI C,00H        (INITIALIZING COUNTER TO 00)

STC                        (SETTING THE CARRY)

CMC                      (COMPLIMENT OF CARRY ,SO CARRY BECOMES ZERO)

LOOP::RAR     (HERE LOOP BEGINS,NOTE THE ADDRESS OF THIS REGISTER TO BE USED FURTHER)

JNC  level 1:: (WRITE THE ADDRESS OF LEVEL 1)

INR C                   (INCREMENT IN C)

level 1::DCR B (DECREMENT IN B)

JNZ LOOP:: (HERE SPECIFY THE LOOP ADDRESS)


HLT

 

So that's the program for parity checker, subscribe us on your mail directly for more such programs and information related to 8085 microprocessors.

Please mention your views and comments over the post and the blog.thank you.

1 comment:

  1. very cool method of teaching programming...

    ReplyDelete