Print " AAAAA " using assembly program.


Write a program to print "AAAAA".

 Write assembly code to print " AAAAA ".

 Print " AAAAA " 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,65

 

INT 21H

ADD BH,1

CMP BH,5

JLE L1

MOV AH,4CH

INT 21H

CODE ENDS

END START

Output:-

AAAAA

No comments:

Post a Comment