Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Introduction to Microprossor Topic : Pin function of 8085 Name of Faculty : H.M.Avaiya & Bhargav Halari
Instruction Code Formats opcode operands Opcodes Add = 1010 Move = 1000 Load = 0000 Store = 0001 Push B = 0101 Push C = 0110 Pop A = 1100 Less complex with fewer operands, but more difficult to program
Instruction Set Architecture (ISA) Design What should the ISA and its processor be able to do? –Completeness: does the instruction set hall all the instructions a program needs to perform its required tasks PC needs rich set Microwave oven needs limited set –Orthogonality: no overlap of instructions Minimize overlap – provides necessary functions with minimum instructions –Register set: more registers speeds up CPU operations, but unused registers take up needed space Does the processor have to be backward compatible with others? What types and size of data will microprocessor deal with? –Need floating point instructions? –Need character instructions? –Are interrupts necessary? –Are conditional instructions necessary?
A Relatively Simple Instruction Set Architecture Memory Module –64K (= 2 16 ) bytes of memory with each byte having 8 bits (64K X 8) –I/O is treated as memory access (Memory Mapped I/O) 3 Registers –Accumulator AC 8 bit register used as on of the operands Data loaded from memory to AC and AC to memory –R 8 bit general purpose register –1-bit zero flag Z Set when arithmetic or logic instruction is executed 0 results sets flag to 1
Instruction Set for Relatively Simple CPU Γ = 16 bit memory address An instruction with a memory reference requires 3-bytes Instruction with 3-bytes stores address bytes with low order bytes first and high order bytes next 25: JUMP 1234H 25: (JUMP) 26: (34H) 27: (12H) M[Γ] is memory location at Γ
Instruction Format for Relatively Simple CPU 3-byte Format 1-byte Format
Data Movement Instruction for 8085 Microprocessor
Instruction Format for 8085 Processor
Data Operation Instruction for 8085 Microprocessor
Program Control Instruction for 8085 Microprocessor
From Essentials of Computer Architecture by Douglas E. Comer. ISBN © 2005 Pearson Education, Inc. All rights reserved.