Monday, August 2, 2010

Diagonal Letters

Output:



Codes:

.model small
.stack 50
.data
.code
main proc
mov ah, 02
mov dl, 61h
int 21h
start: sub dl, 20h
int 21h
push dx
mov dl, 0AH
int 21h
pop dx
add dl, 20h
inc dl
cmp dl, 5bh
jne start
int 20h
main endp
end main

2 comments:

  1. hi i tried ur codes but it doesn't work.. my compiler is tasm pls reply

    ReplyDelete
  2. is this the right code for diagonal loop?

    ReplyDelete