Write a program to display the extended ASCII characters .Display 10 characters per line
#. Write a program to display the extended ASCII characters (ASCJI codes 80h to FF_h). Display 10 characters per line, separated by blanks. Stop after the extended characters have been displayed once.
Solution:
.model small.stack 100h
.data
.code
main proc
mov cx,127
mov bl,0
print:
mov ah,2
inc cx
cmp cx,255
ja Exit
mov dx,cx
int 21h
mov dx,32d
int 21h
jmp Next
Next:
inc bl
cmp bl,10
je newline
jmp print
newline:
mov ah,2
mov dl,0dh
int 21h
mov dl,0ah
int 21h
mov bl,0
jmp print
Exit:
mov ah,4ch
int 21h
No comments