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

How is bob different from johnny in the outsiders

Write the structure of For…Next loop in VB.Net and also write a program to print integers from 1 to 10 on the console.

What is the hex for + and - under with a sum involved


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;

Difference between div and idiv

CMPS : Compare String Byte or String Word:-The CMPS instruction may be utilized to compare two strings of Words or byte. The length of the string ought to be stored in the CX. If

Write a program to evaluate the following expression. You are to evaluate the following equation: num1 - (input + num2) - (num3 + num4) Input will be a hex number input by

Write a MC68HC12 assembly language program to average ten 16-bit values that are stored starting at address $1100. Place the two-byte result at $1110. Use indexed addressing. Us