Convert a binary number to ASCII character string.

8).Convert a binary number to ASCII character string.

.MODEL SMALL
.DATA
INPUT DB 10,13 , 'ENTER BINARY NO: $'
OUTPUT DB 10,13, 'THE ASCII CHARACTER IS:$'
ARR DB ?
.CODE
.STARTUP
MOV AH,09H
MOV DX,OFFSET INPUT
INT 21H
MOV BL, 00H
MOV CL,08H
INPUT1: MOV AH,01H
INT 21H
SUB AL,30H
SHL BL,1
ADD BL,AL
LOOP INPUT1
MOV AH,09H
LEA DX,OUTPUT
INT 21H
MOV AH,02H
MOV DL,BL
INT 21H
.EXIT

END

No comments:

Post a Comment

Featured post

Amazon Interview Process

On July 5, 1994, Jeff Bezos started the world's most "customer-centric" firm out of his garage in Bellevue, Washington. The A...