Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   need help in LOOPING (http://www.go4expert.com/forums/help-looping-t29736/)

Kuiva 19Jul2013 01:17

need help in LOOPING
 
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



All times are GMT +5.5. The time now is 13:23.