x86 - Printing a new line in assembly language with MS-DOS int 21h system calls -


i've been trying print new line while printing alphabet using assembly language in nasmide past few days , can't it, i've tried far has either printed nothing, printed or printed multitude of symbols, google hasn't been helpful me decided post here.

my code far

cr equ 0dh lf equ 0ah  main: mov ah,02h mov cx,26 mov dl, 'a'  while1: cmp dl, 'a' add dl, 01h int 21h mov dl, 0dh mov dl, 0ah int 21h cmp dl, 'z' je next jmp while1  next: mov ah,4ch int 21h 

code printing new line

mov dl, 10 mov ah, 02h int 21h mov dl, 13 mov ah, 02h int 21h 

ascii ---> 10 new line ascii ---> 13 carriage return

that code in assembly new line, code inspirated writing machine. our professor told story i'm not @ english.

cheers :)


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -