10
REGISTERS COMPONENTS

Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

Embed Size (px)

Citation preview

Page 1: Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

REGISTERSCOMPONENTS

Page 2: Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

REGISTERS

STACK POINTER

Stack

Stack Pointer

A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is sent.

Page 3: Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

REGISTERS

PROGRAM COUNTER

Program Counter

Instruction 5

Instruction 4

Instruction 3

Instruction 2

Instruction 1Program Counter

Points to the next instruction that needs to be fetched and executed.

Page 4: Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

REGISTERS

STATUS REGISTER

• positive number• negative number• overflow result• zero

Status Register

The status register holds condition codes to indicate the outcome of operations. For example, an arithmetic operation may produce a positive, negative, zero or overflow result , so a flag is set accordingly.

Page 5: Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

REGISTERS

ACCUMULATOR

Accumulator

Control Unit

Holds the result of the current set of instructions . For example, ADD #45 which means add the number 45 to the current contents in the accumulator and store the result in the accumulator.

Arithmetic Logic Unit (ALU)

Page 6: Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

REGISTERS

CURRENT INSTRUCTIONREGISTER (CIR)

Current Instruction

Instruction 4

Instruction 3

Instruction 2

Instruction 1Current Instruction Current

Instruction Register

Holds the current instruction to be executed while it is decoded and executed.

Page 7: Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

Address Data #

Address Data #

REGISTERS

MEMORY ADDRESS REGISTER (MAR)

Address Data #

Address Data #

Address Data #

Address Data #This holds the address of the memory location currently being accessed by the processor. It stores memory addresses of instructions and data.

Page 8: Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

REGISTERS

Control unit

Data #

Data #

Data #

Data #

Data #

Data #The control unit is a component of a computer's central processing unit (CPU) that directs operation of the processor. It tells the computer's memory, arithmetic/logic unit and input and output devices how to respond to a program's instructions.

Page 9: Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

REGISTERS

MEMORY DATA REGISTER (MDR)

Data #

Data #

Data #

Data #

Data #

Data #This holds the data being transferred to and from memory and currently being acted upon by the processor.

Page 10: Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is

REGISTERS

Arithmetic Logic Unit (ALU)

Instructions & Data

Arithmetic Logic Unit (ALU)

An arithmetic logic unit(ALU) is a digital circuit that performs integer arithmetic and logical operations. The ALU is a fundamental building block of the central processingunit of a computer, and even the simplest microprocessors contain one for purposes such as maintaining timers.