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 many profit center can we assig to material master

1 Answers  


how do i copy first 10 records from one sequntial file to another sequential file by using JCL program?

0 Answers  


hai i got one error i,e http status 404 error what is ds why ds is comming

0 Answers  


When I look for mannual enry of any of the command in Unix, such as #man ls, I get a message "Reformatting entry. Wait..." and control comes to a next command prompt. what is the problem?

0 Answers  


Jetking is C C

0 Answers  






wut is pre law

0 Answers  


what is employee MAPPING in recruitment...?

1 Answers   HCL,


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

0 Answers  


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

0 Answers  


suppose backgrd job is completed in 5 min yesterday,but the same job is taking 15 min to execute what is the reason?

2 Answers   TCS,


If i need use vcredit or checque payment in form what should i do? Plz reply

1 Answers  


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.

0 Answers  


Categories