Skip to content

Instantly share code, notes, and snippets.

@abrarShariar
Last active February 5, 2016 22:30
Show Gist options
  • Save abrarShariar/1af87dd95a1a939db408 to your computer and use it in GitHub Desktop.
Save abrarShariar/1af87dd95a1a939db408 to your computer and use it in GitHub Desktop.
Loop to print from 'a' to 'z'
;loop to print a to z
.model small
.stack 100h
.data
.code
main proc
mov cl,61h ; 'a'
LOOP:
mov ah,02h ;print char
mov dl,cl
int 21h
add cl,1 ;inc cl
cmp cl,7Bh ;check if 'z'
je END
jmp LOOP
END: mov ah,4ch
int 21h
main endp
end main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment