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

need help in LOOPING

Discussion in 'Assembly Language Programming (ALP) Forum' started by Kuiva, Jul 18, 2013.

  1. Kuiva

    Kuiva New Member

    Joined:
    Jul 18, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hello, i am new in assembly and we were asked to output this

    AE
    BD
    CC
    DB
    EA

    and this:

    A
    B
    C
    D
    E

    and here is my code, tell me whats wrong in it as i failed to output the required display output
    Code:
    .model small
    .stack
    .code
    org 100h
    
    start:
        mov ah, 02h
        mov cx, 005h
        mov bl, 41h
    A:    mov dl, bl
        int 21h
        mov bx, 45h
        mov dx, bx
        int 21h
        dec bx
        inc bl
        loop A
        int 27h
    end start
    
    
    
     

Share This Page