Last active
February 5, 2016 22:30
-
-
Save abrarShariar/1af87dd95a1a939db408 to your computer and use it in GitHub Desktop.
Loop to print from 'a' to 'z'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;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