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

who was first "woman" cheaf-minister in india and which state ?

4 Answers   Hindustan Unilever Limited,


convert this 13 letters in two words. ATFREVOHIULFL

1 Answers   TATA,


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  


Red Hat Linux connecting via windows system used for x manger software installed in windows system. X manager via calling for Linux system.

0 Answers  


Flow of fluid takes place due to its?

1 Answers  






how to fix the heap space error in java ?

1 Answers  


first women to climb mount everst?

1 Answers  


hi pp gurus, when i do the goods receipt through transiction MIGO the system, gives following error. I filled up all information that needs MIGO transiction. the error is: "Account determination for entry INT GBB___AUF 7900 not possible." can any one suggest me what to do now?

0 Answers  


Sir, I apply sbi clerk exams(07/09/09)But I did a mistake to enter my date of birth(correct 04.01.1985 / wrong 04.01.1984).please give me suggestions please. Thanking you, Bhushan.B

0 Answers  


U have 8 balls, all have the same in size, 7 have same weight & 8th have weight slightly more.How can u find the ball which have slightly more weight by using a balance & only 2 weightings ?

1 Answers   ANZ, Google,


well i dont have toefl and gre scor all that stuff, and i have 7 backlogs, tell me the chances of getting the visa.

0 Answers  


What is the difference between return code and completion code. When i was searching in the direct for the problem, the following errors displayed. Please can any1 explain these. Completion Code => 4 Message Id => XXDR012I Short Text => XDR field overflow. Key=SER. Len=8. Completion Code => 8 Message Id => XSQF009I Short Text => Sys call open() failed.Filename=/opt/apps/cdt3/USA/outbound/CD810O.errno=17. Completion Code => 8 Message Id => XCPR010I Short Text => Open failed for copy in OPEN_DEST_DATA. Errno=17. can you explain those 3 completion codes and also with difference between return code and completion code

0 Answers  


Categories