Source program:
- LXI H, 2200H : Initialize memory pointer to pointer the message
- MVI C, 32H : Initialize counter to send 50 characters
- MVI A, 00H
- OUT FFH
- OUT FFH : Dummy mode word
- OUT FFH
- MVI A, 40H : Reset command word
- OUT FFH : Reset 8251A
- MVI A, CAH : Mode word initialization
- OUT FFH
- MVI A, 11H : Command word initialization
- OUT FFH
- CHECK: IN FFH
- ANI 0lH : Check TxRDY
- JZ CHECK : Is TxRDY I? if not, check again
- MOV A, M : Get the character in accumulator
- OUT FEH : Send character to the transmitter
- INX H : Increment memory pointer
- DCR C : Decrement counter
- JNZ CHECK : if not zero, send next character
- HLT : Stop program execution
|
Flowchart for Source Program
|
0 Comments