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

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  


How much time will be display the inscription www.example.pl int i =0; for (i=0;i<=0x32;i++) i+=0; i--; for (int i2 = i; i2 < 100;i2++){ System.out.println("www.example.pl"); } What is the answer ?

0 Answers   IBM,


how to upload asset master data through LSMW in sap fi?

2 Answers   AppLabs,


after going to service throw to administrator tools service promp are not opening

0 Answers  


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,

0 Answers  






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

0 Answers  


how to fix the heap space error in java ?

1 Answers  


I had started working on QTP, but i am facing an problem of object not found while run the test script, pls help in out of this problem ..?

2 Answers  


my 1st friend gave me 1000 and 2nd gave me 500 i have loos 1000 rupees then i purchase some thing with the cost of 300 and gave 100 100 both friends 1st friend remaining 900 and 2nd remaining 400 900+400+300=1600 why

73 Answers   Accenture, Angel Broking, Apple, BPO, CP, DAS, Facebook, Infosys, Muthoot Group, Myntra, Patel, Suman Saurabh, TCS, UPSC, Vivek Engineers, WhatsApp, Zubi,


Answers for Complete This Song B_C_A_A _IL K_A KA_E, S__AN J__E B__D_ J__E

0 Answers  


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

0 Answers  


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

2 Answers  


Categories