Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write an assembly code which can call function in a loop
with al value from 0 to 9

Answers were Sorted based on User's Feedback



write an assembly code which can call function in a loop with al value from 0 to 9..

Answer / laxman

org 00h
mov r0,#09
mov r1,#01
loop : acall func; ; calling function in loop 9-0 times
djnz r0,loop


func : inc r1 ; output will be in r1 register
ret

end


if any thing plz mail to me laxman_balu@hotmail.com

Is This Answer Correct ?    8 Yes 1 No

write an assembly code which can call function in a loop with al value from 0 to 9..

Answer / dinesh kumar.r

MVI B,00
MVI C,OA
LOOP:
INR B
DCR C
SUB C
JNZ LOOP
HLT

Is This Answer Correct ?    2 Yes 1 No

write an assembly code which can call function in a loop with al value from 0 to 9..

Answer / sivasyam

mov ro,#10h

here:
acall fun
inc a1
djnz ro,here

Is This Answer Correct ?    5 Yes 5 No

write an assembly code which can call function in a loop with al value from 0 to 9..

Answer / sridevi

Mr.Lakshman, I found some changes in your code. Hope this is OK.

org 00h
mov r0,#00
mov r1,#00
loop : acall func
inc r0
cjne r0,#09,loop
jmp pgmend

func: inc r1
ret

pgmend:
end

Is This Answer Correct ?    2 Yes 2 No

write an assembly code which can call function in a loop with al value from 0 to 9..

Answer / pk

xor ax, ax
loop1:
call foo
inc al
cmp ax, 10
jb loop1

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More 86 Family Interview Questions

Describe the non-vectored interrupt process?

0 Answers  


What are the different type of registers used in 8085?

0 Answers  


What are the index registers in 8086?

0 Answers  


What is a coprocessor trap?

1 Answers  


What is the purpose of clk signals of 8085?

0 Answers  


Can you name the different types of processor?

0 Answers   IOCL,


Explain the different types of data transfers possible in the 8085.

0 Answers  


Write a program that will store the contents of an accumulator and flag register at locations 2000h and 2001h.

0 Answers  


Explain the differences between the nmi and intr

0 Answers  


explain the flow of a typical instruction word

0 Answers  


What is a stack pointer register?

0 Answers  


What are the steps involved in communication of 8085 microprocessor with the memory?

0 Answers  


Categories