Vous êtes sur la page 1sur 1

Om Amriteswaryai Namaha Assignment-2 for S5 ECE B Submission Date: Oct 3, 2013

1. Students must have their own calculators while writing the tests. 1. Write the Assembly Langauage program to add the following two numbers and store the result in memory location 2005 and 2006. Specify the size of your program (total number of bytes). FEDCh ABCDh (+) -----------------------2. Find the number of bytes this entire program will occupy in the memory space, number of machine cycles and the number of t-states? What is the ending address of this program? (5) The processor used in the system is working at 400 MHz, find the time taken to execute this program? (5) 3. Display the contents of the registers A, B, C, D, E, H, L, PC and SP after executing every instruction in the program below. Find the number of bytes this entire program will occupy in the memory space, number of machine cycles and the number of t-states? What is the ending address of this program? If the processor used in the system is working at 500 MHz, find the time taken to execute this entire program? 4. Find the errors in the below program. Question number 2 2700: MVI A, 54 MVI L, 4D ADD L JNC LION MVI C, 49 LXI H, F934 LION: ADI 15 HLT Question number 3 6100: MVI A, 54 MVI C, 49 MVI L, 4D ADD L JNC NATURE LXI H, F934 ; NATURE: ADD C ; JNC TREE CMA ; SUI 03 TREE: MOV D, L INX H HLT Question number 4 F900: MVI B,M MOV C, 49H LXI L, 4DH STAX B ADC L JNC APPLE LXI C, F934H ; APPLE: XRA C ; JNP BANANA CMA CMB SUI 03 SUC 03 BANANA: MOV P, L INR H HLT

5. Find the meaning, number of bytes, machine cycles and T-states for the following instructions of 8085 microprocessor? (i) DAA (ii) CMC (iii) LHLD (iv) DAD B (v) EI (vi) RIM (vii) RST 3 (viii) RET (ix) RZ (x) XCHG Note: OCT4, 2013 Class test on Chapters 5,6 and 7.

****************************************************All the best************************************************** Br. Ramesh.B.

Vous aimerez peut-être aussi