N <B 2 > N+1 <B 3 > N+2

Similar documents
Lecture-19 Instruction Set

13. IN PORT: This is an ALP statement. PORT is the symbolic name given to 8-bit address of the input device available as a 2 nd byte of the

Lecture-19 MICROPROCESSOR INSTRUCTIONN SET: Each subsystem in a microprocessor based system the memory, the microprocessor and the input and output

Machine Cycle- 1: OFMC: Status signals IO/M=0, S 1 =1, S 0 =1

Machine Cycle- 2 or (Machine Cycle-1 of next instruction):

Lecture-15 W-Z: Increment-Decrement Address Latch:

(1) Define following terms: Instruction, Machine Cycle, Opcode, Oprand & Instruction Cycle. Instruction:

MACHINE CONTROL INSTRUCTIONS: 1. EI

Lecture-12 INTERNAL ARCHITECTURE OF INTEL 8085: The Functional Block Diagram Of 8085 Is Shown In Fig 16.

UNIT 1 REFERENCE 1 PREPARED BY S.RAVINDRAKUMAR, LECT/ECE, CHETTINAD COLLEGE OF ENGG AND TECH, KARUR

ELECTRICAL ENGINEERING

Instruction set of 8085

Subject Code: Model Answer Page No: /25

Pin Description, Status & Control Signals of 8085 Microprocessor

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

The functional block diagram of 8085A is shown in fig.4.1.

8085 Microprocessor Architecture and Memory Interfacing. Microprocessor and Microcontroller Interfacing

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller

Lecture-30 Assemblers To assemble a program automatically the assembler needs information in the form of assembler direct that controls the assembly.

Chapter Introduction Chapter 1. a) Address translation b) Protection c) Program relocation. type's "««"** ***** ** various

Instruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

SAMPLE STUDY MATERIAL

INSTRUCTION SET OF 8085


8085 INSTRUCTION SET INSTRUCTION DETAILS

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

Lecture Note On Microprocessor and Microcontroller Theory and Applications

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

Lecture-55 System Interface:

Assembly Language Programming of 8085

م.م. ماجد عيدان. Introduction to microprocessor and microcomputer

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND)

Assembly Language Programming of 8085

Chapter 1: Basics of Microprocessor [08 M]

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

MICROPROCESSOR AND INTERFACING (EE-329-F) LAB MANUAL

MICROPROCESSOR AND INTERFACING (EE-319-F) LAB MANUAL

Outcomes. Lecture 13 - Introduction to the Central Processing Unit (CPU) Central Processing UNIT (CPU) or Processor

1. Internal Architecture of 8085 Microprocessor

MICROPROCESSOR BASICS AND RELATED TERMS

Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

Lecture-50 Intel 8255A: Programming and Operating Modes

Faculty of Engineering Systems & Biomedical Dept. First Year Cairo University Sheet 6 Computer I

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

Micro Processor & Micro Controllers

SCRAM Introduction. Philipp Koehn. 19 February 2018

MICROPROCESSOR AND MICROCONTROLLER

CC312: Computer Organization

Department of Computer and Mathematical Sciences. Lab 4: Introduction to MARIE

Lecture 5. EEE3410 Microcontroller Applications Department of Electrical Engineering Assembly Language Programming (1)

1. Internal Architecture of 8085 Microprocessor

For more notes of DAE

1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions.

Computer Organization

Computer Architecture 1 ح 303

Microprocessor Architecture

Assembly language Programming

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

2. ADDRESSING METHODS

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.


(2½ Hours) [Total Marks: 75]

session 7. Datapath Design

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

THE MICROPROCESSOR Von Neumann s Architecture Model

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.

General Purpose Signal Processors

Let s put together a Manual Processor

General Purpose Processors

MARIE: An Introduction to a Simple Computer

Computers and Microprocessors. Lecture 34 PHYS3360/AEP3630

Machine Language and Assembly Language

COMPUTER ARCHITECTURE AND DIGITAL DESIGN

Note that none of the above MAY be a VALID ANSWER.

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)

Microcontroller Systems

EE 3170 Microcontroller Applications

Basics of Microprocessor

Lecture XIV 8086 Memory Interface. Wisam I Hasan

ASSIGNMENT ECE514 (COMPUTER ORGANIZATION) ASSIGNMENT NO. 3

Practical Course File For

CISC Processor Design

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 11 Instruction Sets: Addressing Modes and Formats

Processor: Multi- Cycle Datapath & Control

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

William Stallings Computer Organization and Architecture

UNIT.1 THE 8085 MICROPROCESSOR. SYLLABUS Introduction to 8085 Microprocessor architecture Instruction set Programming the 8085 Code conversion.

Transcription:

Lecture-22: 9. LHLD ADDR: This is an ALP statement. LHLD is the mnemonic for LOAD (H,L) REGISTER PAIR DIRECT. The meaning of the instruction is Load the content of the memory location whose address is directly available as 2 nd & 3 rd byte of the instruction to register L and the content of the memory location at next higher address to the register H. This is a 3-byte instruction. The instruction format is 0 0 1 0 1 0 1 0 N <B 2 > N+1 <B 3 > N+2 The macro RTL implemented is (L) M(B 3, B 2 ) (H) M((B 3, B 2 ) + 1) This instruction has no variation. The addressing mode is direct addressing mode. The micro RTL flow is: Machine Cycle- 1: OFMC: Status signals IO/M=0, S 1 =1, S 0 =1 T 3 : RD = 1,, (IR) AD 7 -AD 0 T 4 : μp decodes the opcode. LHLD addr = 1.

Machine Cycle- 2: T 3 : RD = 1,, (Z) AD 7 -AD 0 Machine Cycle- 3: T 3 : RD = 1,, (W) AD 7 -AD 0 Machine Cycle- 4: T 1 : A 15 -A 8 (W), AD 7 -AD 0 (Z), ALE = T 2 : RD = 0, AD 7 -AD 0 M(AB) T 3 : RD = 1,, (L) AD 7 -AD 0 Machine Cycle- 5: T 1 : A 15 -A 8 (W), AD 7 -AD 0 (Z+1), ALE = T 2 : RD = 0, AD 7 -AD 0 M(AB) T 3 : RD = 1,, (H) AD 7 -AD 0 The instruction requires 5 machine cycles- OFMC & fours MRMC and total number of 16 states. It needs 8.0µsec using 2 MHz internal

clock. The data flow during the execution of instruction is shown in fig.5.9. Memory X3 X2 X1 X0 2A H N 16 AB Y1Y0 N+1 Y3Y2 N+2 Y3 Y2 Y1 Y0 Z1 Z0 Z3 Z2 X3 X2 X1 X0 PC Y3Y2 W Y1Y0 Z Z3Z2 Z1Z0 8 BDB H L IR Fig.5.9 Data Flow during the Execution of LHLD Addr Instruction 10. SHLD ADDR: This is an ALP statement. SHLD is the mnemonic for STORE (H, L) REGISTER PAIR DIRECT. The meaning of the instruction is the Store the content of (L) register into the memory location whose address is available as 2 nd & 3 rd byte of the instruction itself and store the content of (H) register into the memory location whose address is next higher address. The instruction format is 0 0 1 0 0 0 1 0 N <B 2 > N+1 <B 3 > N+2 The macro RTL implemented is M(B 3, B 2 ) (L) M((B 3, B 2 ) + 1) (H)

This instruction has no variation. The addressing mode is direct addressing mode. The data flow during the execution of instruction is shown in fig.5.10. Memory X3 X2 X1 X0 22 H N 16 AB Y1Y0 N+1 Y3Y2 N+2 Y3 Y2 Y1 Y0 Z1 Z0 Z3 Z2 X3 X2 X1 X0 PC Y3Y2 W Y1Y0 Z Z3Z2 Z1Z0 8 BDB H L IR Fig.5.10 Data Flow during the Execution of SHLD Addr Instruction The micro RTL flow is: Machine Cycle- 1: OFMC: Status signals IO/M=0, S 1 =1, S 0 =1 T 3 : RD = 1,, (IR) AD 7 -AD 0 T 4 : μp decodes the opcode. SHLD addr = 1. Machine Cycle- 2: T 3 : RD = 1,, (Z) AD 7 -AD 0

Machine Cycle- 3: T 3 : RD = 1,, (W) AD 7 -AD 0 Machine Cycle- 4: MWRMC: Status signals IO/M=0, S 1 =0, S 0 =1 T 1 : A 15 -A 8 (W), AD 7 -AD 0 (Z), ALE = T 2 : WR = 0, AD 7 -AD 0 (L) T 3 : WR = 1,, M(AB) AD 7 -AD 0 Machine Cycle- 5: MWRMC: Status signals IO/M=0, S 1 =0, S 0 =0 T 1 : A 15 -A 8 (W), AD 7 -AD 0 (Z+1), ALE = T 2 : WR = 0, AD 7 -AD 0 (H) T 3 : WR = 1,, M(AB) AD 7 -AD 0 The instruction requires 5 machine cycles- OFMC, two MRMC & two MWRMC and total number of 16 states. It needs 8.0µsec using 2 MHz internal clock. 11. LDAX rp: This is an ALP statement. LDAX is the mnemonic for LOAD ACCUMULATOR INDIRECTLY. As discussed earlier, the alphabet X in the mnemonic tells that a register pair is involved in the instruction. rp stands for register pair. The meaning of the

instruction is Load the accumulator from the memory location whose address is available in a register pair specified in the instruction. Only one operand in involved in this instruction & the operand is available in the memory location whose address is in a register pair. The macro RTL implemented is (A) M(rpH, rpl) This is a single byte instruction. The instruction format is 0 0 R P 1 0 1 0 N There are two variations of this instruction RP = 00 for (B, C) register pair and RP= 01 for (D, E) register pair. Note that RP = 10 and 11 are not allowed in this instruction. The micro RTL is Machine Cycle- 1: OFMC: Status signals IO/M=0, S 1 =1, S 0 =1 T 3 : RD = 1,, (IR) AD 7 -AD 0 T 4 : μp decodes the opcode. LDAX rp = 1. Machine Cycle- 2: T 1 : A 15 -A 8 (rph), AD 7 -AD 0 (rpl), ALE = T 2 : RD = 0, AD 7 -AD 0 M(AB) T 3 : RD = 1,, (A) AD 7 -AD 0 This instruction requires 2 machine cycles OFMC & MRMC and 7 states. It needs 3.5 µsec using 2MHz clock. The addressing mode is register indirect addressing mode.

12. STAX rp: This is an ALP statement. STAX is the mnemonic for store accumulator indirectly using register indirect addressing mode. The meaning of the instruction is Store the content of accumulator in the memory location whose address is available in register pair specified in the instruction. The macro RTL implemented is M(rpH, rpl) (A) This is a single byte instruction. The instruction format is 0 0 R P 0 0 1 0 N This instruction also has only two variations. RP = 00 and 01 are allowed for register pair (B, C) and (D, E) respectively. The micro RTL flow is Machine Cycle- 1: OFMC: Status signals IO/M=0, S 1 =1, S 0 =1 T 3 : RD = 1,, (IR) AD 7 -AD 0 T 4 : μp decodes the opcode. LDAX rp = 1. Machine Cycle- 2: MWRMC: Status signals IO/M=0, S 1 =0, S 0 =1 T 1 : A 15 -A 8 (rph), AD 7 -AD 0 (rpl), ALE = T 2 : WR = 0, AD 7 -AD 0 (A) T 3 : WR = 1,, M(AB) AD 7 -AD 0

This instruction requires 2 machine cycles OFMC & MWRMC and 7 states. It needs 3.5 µsec using 2MHz clock. The addressing mode is register indirect addressing mode.