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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are software interrupts?

582


Explain the differences between the nmi and intr

648


Define bit, byte and word.

767


What are the types of interrupts from type 0 to 4

587


Explain the functions of ale in 8085?

603






Comment the size of stack?

582


What is the structure of psp?

641


Explain the purpose of the status register?

630


What is the difference between isr & function call?

546


Explain the instruction stream queue mechanism in the 8086?

565


List various types of interrupts available in 8051 microcontroller?

613


Explain the software instruction ei and di?

629


Write the special functions carried by the general purpose registers of 8086?

623


What are the data pins of microprocessors?

688


What is a microprocessor?

641