Steric Mountain

org 100h

.data
str db 0Ah,0Dh,”$”
x dw 1
y dw 7

.code
Top1:
mov cx,x

Top2:
mov ah,2
mov dl,’x’
int 21h
loop Top2

mov ah,9
lea dx,str
int 21h

inc x
cmp x,7
jne top1

Top3:
mov cx,y

Top4:
mov ah,2
mov dl,’x’
int 21h
loop Top4

mov ah,9
lea dx,str
int 21h

dec y
cmp y,0
jne top3

ret

 

OutPut Screen:

Print Mountain

 

Find More Assembly Codes Here!

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.