Space don''t come in ASCII characters while printing?, Assembly Language

.MODEL SMALL
.STACK 100H

.DATA
PROMPT DB \''The 256 ASCII Characters are : $\''

.CODE
MAIN PROC
MOV AX, @DATA ; initialize DS
MOV DS, AX

LEA DX, PROMPT ; load and print PROMPT
MOV AH, 9
INT 21H

MOV CX, 256 ; initialize CX

MOV AH, 2 ; set output function
MOV DL, 0 ; initialize DL with first ASCII character

@LOOP: ; loop label
INT 21H ; print ASCII character

INC DL ; increment DL to next ASCII character
DEC CX ; decrement CX
JNZ @LOOP ; jump to label @LOOP if CX is 0

MOV AH, 4CH ; return control to DOS
INT 21H
MAIN ENDP
END MAIN
Posted Date: 2/7/2019 11:08:34 AM | Location : Pakistan







Related Discussions:- Space don''t come in ASCII characters while printing?, Assignment Help, Ask Question on Space don''t come in ASCII characters while printing?, Get Answer, Expert's Help, Space don''t come in ASCII characters while printing? Discussions

Write discussion on Space don''t come in ASCII characters while printing?
Your posts are moderated
Related Questions

The 486 Introduced in the year 1989 the 80486 did not feature any radically new processor technology. Instead, it joints a 386 processor, a cache memory controller and a math c

Cache controller The cache controller is the mind of the cache.  Its responsibilities include:  performing the  snarfs and snoops, updating the  TRAM  and SRAM and implementing

Maximim and Minimum mode 8088 system : In the maximum mode, the pin 880 is lastingly high. The functions and timings of other pins of 8088 are exactly similar to 8086. Due to t

Write a program to merge two sorted arrays to create a third sorted array containing all values from the two original arrays. Merge is a key component to the mergesort algorithm.

Write an application that does the following: (1) fill an array with 50 random integers; (2) loop through the array, displaying each value, and count the number of negative values;

Intel 8259 interrupt controller :  The 8088 processor has only two interrupt control inputs, and interrupt request (INTR) and non mask able interrupt (NMI). NMI are interrupts t

Data copy/transfer Instructions MOV: This data transfer instruction transfers data from one register or memory location to another register or memory location. The source can

Write an assembly program that adds the elements in the odd indices of the following array. Use LOOP. What is the final value in the register?

programs