Searching...
21 Mar 2014

Program To Print Ascii Table in Assembly Language

12.38
Program To Print Ascii Table in Assembly Language 

 .MODEL SMALL
.STACK 100H
.DATA
PROMPT DB "The 256 ASCII Characters are ",0AH,"$"
nxtline DB 0AH,"$"
.CODE
start:
MOV AX, @DATA ; initialize DS
MOV DS, AX
LEA DX, PROMPT ; load and print PROMPT
MOV AH, 9h
INT 21H
MOV Cl, 0 ; initialize CL
MOV AH, 2 ; set output function
LP: ; loop label
Mov DL, CL
MOV AH ,2H ; print ASCII character
INT 21H
LEA DX, nxtline
MOV AH,9H
INT 21H
INC CL ; Increment CL
CMP CL , 255D
JNE LP ; jump to label LP if CL is 255

MOV AX,4C00H
INT 21H
END start

Tags: Program To Print Ascii Table in Assembly Language  Assembly language program in assembly language printing ascii values in assembly language COAL coal program coal programming Ascii values Ascii Table in Assembly

0 komentar:

Posting Komentar