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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can 8259 be interfaced with 8085 via the trap pin?

580


What are the data pins of microprocessors?

687


What is a stack pointer register?

620


What does eu do?

671


Describe the general purpose registers of 8085?

635






Explain in steps what happens when an interrupt occurs?

597


Which register handles the arithmetic operations in the 8085?

598


What is the function of reset out signal.

585


Define microcontroller?

613


What are the index registers in 8086?

637


What are the software instructions related to stack operations?

618


What’s a microprocessor?

575


How clock signal is generated in 8086? What is the maximum internal clock frequency of 8086?

949


Explain with an example how parameters can be passed using registers.

610


what are the differences between isolated i/o and memory mapped i/o

617