Q. Write an 8086 assembly code in print the last digit of your ID in following manner. If Your ID is 0025 then you should print star var
Code:
.MODEL TINY
.DATA
STR DB '*****',20H,20H,'*****',20H,20H,'*****',20H,20H,'***** ',10,13,'*',20H,20H,20H,'*',20H,20H,'*',20H,20H,20H,'*',20H,20H,20H,20H,20H,20H,'*',20H,20H,'*',20H,20H,20H,20H,10,13,'*',20H,20H,20H,'*',20H,20H,'*',20H,20H,20H,'*',20H,20H,'*****',20H,20H,'*****',10,13,'*',20H,20H,20H,'*',20H,20H,'*',20H,20H,20H,'*',20H,20H,'*',20H,20H,20H,20H,20H,20H,20H,20H,20H,20H,'*',10,13,'*****',20H,20H,'*****',20H,20H,'*****',20H,20H,'***** ',' $'
.CODE
MAIN PROC
LEA DX, STR
MOV AH,09H ;FOR STR OUTPUT
INT 21H
END
0 Comments
Post a Comment
thnaks for you comment...