0% found this document useful (0 votes)
10 views5 pages

2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views5 pages

2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

2

10

11

12

13

14
15

16

17

18

19

20

21

22

23

24

25

26
27

28

29

30

.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 0

@LOOP: ; loop label


INT 21H ; print ASCII character

INC DL ; increment DL to next ASCII character

LOOP @LOOP ; loop's condition

MOV AH, 4CH ; return control to DOS

INT 21H

MAIN ENDP

END MAIN

You might also like