Tuesday, September 15, 2009

Roll a message - 'HELL0123'

step 3

step 2








clear command word






Step 1: Find keyboard/display command word.

























Statement: Write an assembly language program to roll message 'HELL0123' from right to left









HARDWARE FOR ROLLING HELLO123









Fig. shows the interfacing of eight 7-segment digits to 8085 through 8279. As shown in the figure eight display lines (Bo-B3 and Ao-A3) are buffered with the help of transistor and used to drive display digits. These buffered lines are connected in parallel to all display digits. So, Sl and S2 lines are decoded and decoded lines are used for selection of one of the eight digits









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

1 comment:

  1. How to play roulette at the casino? - DRMCD
    I have an iPhone and a $10 iPhone. If you're interested in roulette in Canada, 양산 출장샵 then you should check baoji titanium out the roulette 부산광역 출장마사지 table above to find 전주 출장안마 out how 전라북도 출장마사지 to play.

    ReplyDelete