Monday, September 22, 2008

Sample Assembly Program – Looping Operation

; This program will display ABCD vertically with sounds

.model small
.code
.stack 100
org 100h

start :
mov ah, 02h
mov cl, 41h

skip :
mov dl, cl
int 21h
mov dl, 0ah ; move one line down
int 21h
mov dl, 0dh ; move to the first column
int 21h
inc cl
cmp cl, 45h ; if true the output is 0, if false output 1
jnz skip
int 27h
end start

1 comment:

venuB said...

Hi I am new to ALP. How do you know which numbers/words you have to use while writing programmes? Is there any list?