write a program whose output will be-
1
12
123
1234
12345

in assembly language

Answers were Sorted based on User's Feedback



write a program whose output will be- 1 12 123 1234 12345 in assembly language..

Answer / kinza

org 100h
.model small
.stack 100h
.data
.code
mov cx,1
mov bx,1
l1:
mov cx,bx

l2:
cmp cx,6
jz exit
mov dx,cx
add dx,30h
mov ah,02h
int 21h
loop l2
inc bx

mov dl,10
int 21h
mov dl,13
int 21h

loop l1

exit:
ret

Is This Answer Correct ?    1 Yes 4 No

write a program whose output will be- 1 12 123 1234 12345 in assembly language..

Answer / kin2304

org 100h
.model small
.stack 100h
.data
.code
mov cx,1
mov bx,1
l1:
mov cx,bx

l2:
cmp cx,6
jz exit
mov dx,cx
add dx,30h
mov ah,02h
int 21h
loop l2
inc bx

mov dl,10
int 21h
mov dl,13
int 21h

loop l1

exit:
ret

Is This Answer Correct ?    3 Yes 7 No

Post New Answer

More Scripts Errors Interview Questions

How can be avoid the Error while being Human we do mistakes???

0 Answers  


write a program whose output will be- 1 12 123 1234 12345 in assembly language

2 Answers  


WHAT IS A VECTOR ? HOW IS DIFFER FORM AN ARRAY

0 Answers  


Windows xp operating system . Remove some unnecessary software or any packages not removed in windows xp.

0 Answers  


For pH-4 calculation it is subtracted from the previous pH7 buffer value is the same procedure to be followed for calculation of remaining buffers??

0 Answers  






a pleasant evening. i would like to ask a question about yellow journalism. This is another term for sensationalism right? i just wanted to know a lot of articles or studies with regards to the effect this yellow journalism could effect the interpretation of the students,especially college students who are taking Communication course. please help me answer this.

0 Answers  


osgelvaitre arrange it which make 1 romantic word

1 Answers  


Nowadays there is a discussion that tajmahal was not built by shah-jahan..... Is it true...........?

7 Answers  


wut is pre law

0 Answers  


when will we use lsmw , bdc and bapi? which will be easy to use and which is used for which type of data

0 Answers  


how can i write script for sending mail

1 Answers  


I-series. When I use: qtp DICTIONARY(PDMZZ) AUTO (*LIBL/MFR0120X)I get the error: *E* Can't open the file specified on the AUTO program parameter. File of different type already exists. When I use it auto without *libl ,qtp DICTIONARY(PDMZZ) AUTO (MFR0120X), it works fine

0 Answers  


Categories