This document contains an assignment on 8085 microprocessor concepts for a Computer Science and Engineering course. It includes three sections with multiple choice, short answer, and descriptive questions. Section one asks about instruction sizes, examples of instructions with byte counts and cycle times, data transfer categories, writing a program to copy data, rotate instruction examples, and definitions of timing cycles. Section two contrasts LDA and LXI instructions, shows a program with register operations, and defines additional timing terms. Section three validifies instructions, identifies an instruction that loads register pairs, contrasts addressing modes, identifies an exchange instruction and addressing mode, and includes true/false questions about flags, memory mapping, stack operations and rotate instructions.
This document contains an assignment on 8085 microprocessor concepts for a Computer Science and Engineering course. It includes three sections with multiple choice, short answer, and descriptive questions. Section one asks about instruction sizes, examples of instructions with byte counts and cycle times, data transfer categories, writing a program to copy data, rotate instruction examples, and definitions of timing cycles. Section two contrasts LDA and LXI instructions, shows a program with register operations, and defines additional timing terms. Section three validifies instructions, identifies an instruction that loads register pairs, contrasts addressing modes, identifies an exchange instruction and addressing mode, and includes true/false questions about flags, memory mapping, stack operations and rotate instructions.
This document contains an assignment on 8085 microprocessor concepts for a Computer Science and Engineering course. It includes three sections with multiple choice, short answer, and descriptive questions. Section one asks about instruction sizes, examples of instructions with byte counts and cycle times, data transfer categories, writing a program to copy data, rotate instruction examples, and definitions of timing cycles. Section two contrasts LDA and LXI instructions, shows a program with register operations, and defines additional timing terms. Section three validifies instructions, identifies an instruction that loads register pairs, contrasts addressing modes, identifies an exchange instruction and addressing mode, and includes true/false questions about flags, memory mapping, stack operations and rotate instructions.
COMPUTER SCIENCE AND ENGINEERING DEPATMENT Date: 22-03-2018 Assignment-3 Q.1 Answer the following. [5M-7M] 1. Explain the size of instruction with examples. 2. Explain following instructions with no. of bytes, machine cycles and T-states required for execution: 1. LHLD 2. RAR 3. XTHL 4. ADI 3. List and Explain categories of 8085 instructions that deal with data transfer. 4. Write an 8085 program to copy block of five numbers starting from location 2001h to locations starting from 3001h. 5. Explain the working of rotate instructions of 8085 with proper example in each case. 6. Define the terms: T-state, Machine cycle. How many machine cycles and t-states will be required to execute the LHLD instruction? 7. Draw the timing diagram of MOV M, B instruction of an 8085 microprocessor. 8. Describe various addressing modes of 8085 microprocessor with examples. 9. Explain and working the following instruction. 1. XTHL 2. LDAX B 3. PCHL 4. PUSH B 5. JC 2009 10. Write a program to exchange lower and upper 4-bit nibble of number which is stored in location 2050h. Q.2 Answer the following. [2M-4M] 1. What is difference between LDA and LXI. Instruction? 2. If accumulator contain 24H, what is the answer contain by accumulator after four times RLC. 3. What will be the content of accumulator and the CY flags after the execution of the following instruction? MVI A, D5H XRA A RLC RRC RAL RAR 4. List the operations of branch group and explain briefly. 5. Define: T-state, machine cycle, instruction cycle 6. Give the output of following programs. (A) MVI A,50H SUB A HLT (B) LXI E, 0305H LXI D, 0204H MOV A,E SUB E MOV C,A MOV A,D SBB D MOV B,A HLT Q.3 Answer the following. [1M] 1. Point out the valid and invalid instructions. Correct the invalid ones. a. MVI AB b. LDA BD c. MOV 05 d. ANI 0B e. MOV H,L f. LDAX B g. STA C000 2. ____________instruction is used to load 16-bit value in register pair. 3. LDA is _________________addressing mode instruction ,while LDAX is ____________addressing mode instruction. 4. XCHG instruction exchange the contents of __________________and ______________register pairs. 5. Addressing mode of ADI 35H is ___________________. 6. True/False a. No flags are affected by data transfer group of instruction. b. 8085 is memory mapped processor. c. PUSH and POP works with both 8-bit and 16-bit data. d. Rotate left is same as multiplication by 2. 7. Which instruction is used for complement of carry? 8. STC stand for_________________. 9. Which instruction is used for comparison of 8-bit data to accumulator? 10. what is stack?