i am just new to the asembly language.
i did a simple code for a output string , any of proffesional  can help me,suggest the method to me how should i continue my coding.."
i need the output string keep moving from left to right with non-stop....

here the code...

.model small
.stack 64
.data
msg7 byte "II  IIII  II ++IIIIII ||        @@@@@@@@  #######  @@II    II@@ II======","$"
msg1 byte "ll  IIII  II **      ||      @@@@@@@@  ##    ## @@ II  II @@ II","$"
msg2 byte "lI  IIII  II **      ||      @@        ##    ## @@ II  II @@ II","$"
msg3 byte "lI  IIII  II **IIIII  ||      @@        ##    ## @@  II II  @@ II====","$"
msg4 byte " Il II  II II  **      ||      @@        ##    ## @@  III  @@ II","$"
msg5 byte "  IIII  IIII  **      ||=====+ @@@@@@@@  ##    ## @@        @@ II","$"
msg6 byte "  II    II    ++IIIIII ||=====+  @@@@@@@@  #######  @@        @@ II======","$"

row db 3d
col db 2d

.code


puts:

mov ah,09h
lea dx,msg7
int 21h
 
mov ah,02h ;newline
mov dl,0dh
int 21h
mov dl,0ah
int 21h

mov ah,09h
lea dx,msg1
int 21h

mov ah,02h ;newline
mov dl,0dh
int 21h
mov dl,0ah
int 21h

mov ah,09h
lea dx,msg2
int 21h


mov ah,02h ;newline
mov dl,0dh
int 21h
mov dl,0ah
int 21h

mov ah,09h
lea dx,msg3
int 21h


mov ah,02h ;newline
mov dl,0dh
int 21h
mov dl,0ah
int 21h

mov ah,09h
lea dx,msg4
int 21h


mov ah,02h ;newline
mov dl,0dh
int 21h
mov dl,0ah
int 21h

mov ah,09h
lea dx,msg5
int 21h


mov ah,02h ;newline
mov dl,0dh
int 21h
mov dl,0ah
int 21h

mov ah,09h
lea dx,msg6
int 21h

ret

pos:
mov ah,02h
mov bh,00
mov dh,row
int 10h

ret

main proc
mov ax,@data
mov ds,ax

call puts

  mov ah,02h ;newline
mov dl,0dh
int 21h
mov dl,0ah
int 21h


mov ax,4c00h
int 21h

main endp
end main
Posted on 2011-11-28 22:48:29 by jove2493