Statement: Write an assembly language program to roll a name – 'J.BINU' from right to left
To roll the above message we have to load 7-segment codes for characters within the message and it is necessary to configure 8279 in right entry mode
Hardware to Roll your NAME
Step 1: Find keyboard/display command word.
Note: DD = 10 = 8 8-bit character display right entry.
Step 2: Find program clock command word
Step 3: Find Read FIFO/sensor RAM command word.
Step 4: Find Write FIFO RAM command word.
| Source program: - LXI B, 6200B : Initialize lookup table pointer
- MVI C, 08H : Initialize counter
- MVI A, 10H : Initialize keyboard/display in right entry mode
- OUT 8IH : Mode
- MVI A, 3EH : Initialize prescaler count
- OUT 8IH
- MVI A, D0H : Clear Display
- OUT 8IH
- MVI A, 90H : Initialize 8279 in write display
- OUT 81H : RAM mode
- BACK : MOV A, M : Get the 7-segment code
- OUT 80H : Write 7-segment code in display RAM
- INX H : Increment lookup table pointer
- DCR C : Decrement counter
- JNZ BACK : if count = 0 stop, otherwise go to back
- HLT : Stop program execution
| Flowchart for Source Program |
Related Programs (Click down)
Find the 7-segment codes for given numbers
Find the ASCII character
ASCII to Decimal Conversion
HEX to Decimal conversion