The following program is used to determine the EVEN parity b
     The following program is used to determine the EVEN parity bit for a 7-bit data value.  The parity bit is bit-7 and the data value is stored In bKs 0 to 6. as shown below: Modify the above program so that it can determine the EVEN parity bit for a 7-bit data value. 
  
  Solution
In the above program just replace the instruction BCC EXIT with BNC EXIT because if carry it indicates that their are even number of zeros,then OR it with #10000000.Then it gives odd parity.

