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

in assembly language

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Process of resolving a specific problem Problem helps to enhance your ability to live life happily. Yes, it looks stupid when somebody say something like this. But it is true. If you say, “how?” I explain how. When there is a problem in ones life, he tries to solve it. Once he solves the problem the satisfaction of solving the problem which he feels has no words. You can see it in his eyes, on his face, in his footsteps, and not the least all around where he is. So tell me, it works? So never give up in your life. Live the life with problem, because life’s other name is problem. No one on the earth saying he or she has no problem. One who does not say that I have problem but try hard to solve the problem is the person who live life happily. There are two system of solving the particular problems. One is: solve intuitively. Two is: solve systematically. From my point of view, solving the problem systematically is much easier, more balanced and logical. To solve the problem systematically there are some instruction like relaxing head for some time, think on problem and the solution. One must not mix two things together in such a way that you can not differentiate them. If essential, there should be different solutions for different problems. In solve problem systematically, one come across five types of questions or we can view it as steps to solve the problem. They are: 1 What are the sources of problem is means “establish the goal”: “To live is to have problems and to solve problems is to grow intellectually.” (J. P. Guilford) No problem exists in the absence of an objective. We need to know exactly what and where we want to arrive at in order for us to properly determine our track and direction. Knowing our direction is an important aspect in problem solving, as what Diana Ross said, “Do you know where you’re going to?” 2 What the problem is exactly means “identify and define the problem”: “Microsoft is company that manages imagination” (Bill Gates). It is definitely related to imagination i.e. asking ourselves what is the problem and to seek to understand more why we think there is the problem is recognized what caused it in order for us to get an objective. 3 What are the solutions of problem means “set your priorities”: “The best way to get a good idea is to get a lot of ideas” (Linus Pauling) Bifurcation between which solutions are “must” and which are “want” is difficult task. The solution which must be taken to solve the problem is listed out. Therefore it is said that “the only joy in the world is to begin.” (Cesare Pavese). 4. Which solution is best among all means “brainstorm for solution”: “That human mind is like a parachute – it functions better when it is open.” (Cole’s Rules) As per this narration, I can say that brainstorm for the solution to the problem is must. When you ask for the opinion of other, you can decide upon what to do and don’t. 5. What action to be taken to solve the problem means “plan your course of action”: “It is not enough to just do your best or work hard. You must know what to work on” (W. Edwards Deming). Plan your course of action with regard to the resources needed to implement the solution. In Living a Life That Matters, Harold S. Kushner (the Massachusetts rabbi whose best selling books include When Bad Things Happen to Good People) suggests that the most successful lives are the ones that most effectively manage and resolve that problem. In a nutshell, to solve the particular problem, Rene Descartes says that “It is not enough to have a good mind; the main thing is to use it well.” FIND OUT GRAMMATICAL ERROR?

5229


according to class7 how can we give description on pendrive?

1987


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??

1143


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

10581


I would like to if there is any vb script to populate my values in the application.Example i will input the data in two 2 rows a & b.I need script where the data in a or b have to populate in my application if my a = nothing and b = 1 or a = 1 or b = nothing.I would be glab if someone can help me here.

1883






how to run the application using winrunner for data driven test?

1915


when i open the system error dialog box come memory could not be read some.

2057


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

1655


dear sir I want singal maintainer(iii& ii) solved question paper in every year in every board in rrb. If you collect these and sent these my mail-id i shall very grateful to you. thanking you your's faithfully soma saha

1920


I worked with $message and $$message, Bt its not working?..

1785


Jetking is C C

2201


The employee runs big client-server applications and must quickly transfer large files. The company wants the best cost/benefit on this connection. What would be the most practical solution?

2350


what are the test cases for ticket vending machine?

3718


Hi can any one help me below two steps in sap FICO, 1.Create document number ranges for company code. 2.Copy document number ranges to fiscal year. was trying to do it but i am not able to completing successfully,

2724


Wen ever i use IE=createObject (Ineternetexplorer.application) QTP just navigates to the URL mentioned but doesn't recognise the USErname and Password field so the test fails.. But wen i just record and use system.util "iexplore" the code recognises and the tst passes, but here it works fine sometimes and sometimes the test just fails and aftersometime i run it works.. so its not consistent,,, any suggestion

2597