Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSC 3650 Introduction to Computer Architecture Time: 3:30 to 6:30Meeting Days: WLocation: Oxendine 1237B Textbook: Essentials of Computer Architecture,

Similar presentations


Presentation on theme: "CSC 3650 Introduction to Computer Architecture Time: 3:30 to 6:30Meeting Days: WLocation: Oxendine 1237B Textbook: Essentials of Computer Architecture,"— Presentation transcript:

1 CSC 3650 Introduction to Computer Architecture Time: 3:30 to 6:30Meeting Days: WLocation: Oxendine 1237B Textbook: Essentials of Computer Architecture, Author: Douglas E. Comer, 2005, Pearson Prentice Hall Spring 2011 Chapter Seven CPUs: Microcode, Protection, and Processor Modes Dr. Chuck Lillie

2 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

3 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?

4 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

5 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: 0000 0101 (JUMP) 26: 0011 0100 (34H) 27: 0001 0010 (12H) M[Γ] is memory location at Γ

6 Instruction Format for Relatively Simple CPU 3-byte Format 1-byte Format

7 Data Movement Instruction for 8085 Microprocessor

8 Instruction Format for 8085 Processor

9 Data Operation Instruction for 8085 Microprocessor

10 Program Control Instruction for 8085 Microprocessor

11 From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

12

13

14

15

16

17

18

19


Download ppt "CSC 3650 Introduction to Computer Architecture Time: 3:30 to 6:30Meeting Days: WLocation: Oxendine 1237B Textbook: Essentials of Computer Architecture,"

Similar presentations


Ads by Google