1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

assembly language program help

Discussion in 'Programming' started by Shynash21, May 13, 2011.

  1. Shynash21

    Shynash21 New Member

    Joined:
    May 13, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello the below 8086 ALP program is to display FIRE and HELP messages alternatively with flickering effects on a seven segment display interface...
    Code:
    .model small
    .data
    msg1 db 86h,88h,of9h,8eh  
    msg2 db 8ch,0c7h,86h,89h  
    .code
    mov ax,@data
    mov ds,ax
    mov dx,133h
    mov al,80h
    out dx,al
    mov cx,25
    again: lea si,msg1
              push cx
              call disp
              call delay
              lea si,msg2
              call disp 
              call delay
              pop cx
              loop again 
             mov ah,4ch
             int 21h
    
      disp proc near
      mov cx,04
    l1:   mov bl,08
         mov al,[si]
    l2:  rol al,01
         mov dx,131h
        out dx,al
        push ax
        mov al,0ffh
       mov dx,132h
       out dx,al
       dec bl
       pop ax
       jnz l1
    l3:  inc si
         loop l1
         ret
        disp endp
        
    please explain me how the codes in msg1 and msg 2 are equivalent to "FIRE" and "HELP" and please explain me the display procedure of the 7 segment display interface
     
    Last edited by a moderator: May 13, 2011
  2. neo_vi

    neo_vi Member

    Joined:
    Feb 1, 2008
    Messages:
    722
    Likes Received:
    15
    Trophy Points:
    18
    Occupation:
    Software engineer
    Location:
    Earth
    Home Page:

Share This Page