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

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

Differentiate between div and idiv instructions with the help of examples.

2629


How many instruction bits does 8085 processor support?

1082


List some 8051 microcontroller applications in embedded systems ?

1013


Explain the two types of software?

1025


Define bit?

1053


Explain what type of architecture is used in 8085 microprocessor?

978


Define the types of memory used in 8085 microprocessor?

1041


Which interrupt in the 8086 has the highest priority?

1108


State the order of interrupts priority wise (lower to higher)?

1003


Define macros with the help of an example.

1158


Describe the (status) flag register of 8085?

1033


What are the widths of data bus (db) and address bus (ab) of 8085?

1056


Why subroutine used in programs?

1151


Explain the flag register in the 8085 microprocessor?

987


Explain the different modes of operations of the 8086?

995