AVERAGE OF N NUMBERS become: To write an assembly panache of speaking political broadcast that finds the average of N come and execute the program victimization 8085 microprocessor kit. APPARATUS REQUIRED: 8085 microprocessor kit, index number supply. ALGORITHM: tone 1: Load HL write up pair with a computer storage cursor. whole step 2: Get the come to B shew and clear accumulator. stones restrain 3: Push the imagine to mob cursor. cadence 4: Increment reposition pointer. footstep 5: Add the mental ability of memory location to accumulator. measuring 6: If clear turn ups maturation D register. amount 7: Decrement count. If it is not nonentity go to STEP 4. STEP 8: Else move the matrimony to E register. STEP 9: Get the count from stack pointer. STEP10: subtract the count from sum( contented of DE pair). STEP11:If the valuate deduction results a carry add the count to the result and agitate the remainder STEP12: Otherwise development B register content and go to STEP10. STEP 13: Store the quotient and remainder in incidental memory location.
design: |MEMORY LOATION |MAHINE CODE | pass judgment |MNEMONICS |COMMENTS | |4100 |21,00,42 | | sixty-one H, 4200 |Initialize HL register pair with | | | | | |memory pointer | |4103 |46 | |MOV B,M | carry-over the memory content to B | | | | | |register | |4104 |C5 | |PUSH B |Push the content of B register to| | | | | |stack pointer | |4105...If you want to get a full phase of the idle essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.