help please

Reply

Join Date: May 2009
Posts: 1
Reputation: Shaabneh is an unknown quantity at this point 
Solved Threads: 0
Shaabneh Shaabneh is offline Offline
Newbie Poster

help please

 
0
  #1
May 12th, 2009
please help me to correct this program:
  1. .model small
  2. .stack 64
  3. .data
  4. x DB 'A'
  5. y DB '1'
  6. LN DB 13,10,'$'
  7. .code
  8. mov cx,5
  9. L1:
  10. mov Bx,Cx
  11. mov cx,5
  12. L2:
  13. mov ah,9
  14. lea dx,x
  15. int 21h
  16. loop L2
  17. mov ah,2
  18. mov dx,y
  19. int 21h
  20. inc y
  21. inc x
  22. mov cx,bx
  23. loop L1
  24. mov ax,4c00h
  25. int 21h
  26. main endp
  27. end main
-------------------------
the output i need
A
1 2
B C D
3 4 5 6
E F G H I
Last edited by John A; May 13th, 2009 at 3:21 am. Reason: added code tags
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC