Print ABCDE in assembly program


 Write a program to print "ABCDE".

 Write assembly code to print "ABCDE".

 Print "ABCDE" using assembly program.

Program:-

DATA SEGMENT

 msg db,0dh,0ah,'output$'

data ends

code segment

assume cs:code,ds:data

START:

MOV AH,2

MOV BH,1

L1:          MOV DL,64

ADD DL,BH

INT 21H

ADD BH,1

CMP BH,5

JLE L1

MOV AH,4CH

INT 21H

CODE ENDS

END START

Output:-

ABCDE

No comments:

Post a Comment