Source program :
- LXI H, 2040H
- MOV C ,M : Counter for character
- REPEAT:INX H : Memory pointer to character
- MOV A,M : Character in accumulator
- ORA A : ORing with itself to check parity.
- JPO PAREVEN : If odd parity place
- ORI 80H even parity in D7 (80).
- PAREVEN:MOV M , A : Store converted even parity character.
- DCR C : Decrement counter.
- JNZ REPEAT : If not zero go for next character.
- HLT : Terminate program execution
|
Flowchart for program
|
0 Comments