Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 4: Representing instructions

Similar presentations


Presentation on theme: "Chapter 4: Representing instructions"— Presentation transcript:

1 Chapter 4: Representing instructions
OCR GCSE Computing Chapter 4: Representing instructions OCR GCSE Computing © Hodder Education Slide 1

2 Chapter 4: Instructions
The instruction set of a CPU Each processor type has a limited range of instructions that it can carry out. This is called its instruction set. Instructions include: changing data; moving data; controlling program flow. OCR GCSE Computing © Hodder Education Slide 2

3 Chapter 4: Instructions
Arithmetic operations: plus, minus, multiply, divide. Logical operations: comparisons; AND, OR, NOT – these are bitwise operators; they change the bits in a byte. OCR GCSE Computing © Hodder Education Slide 3

4 Chapter 4: Instructions
When a computer is instructed to run a program it is directed to the start address for these data and instructions. The CPU fetches the first instruction from this start location and decodes it to find out what to do next. OCR GCSE Computing © Hodder Education Slide 4

5 Chapter 4: Instructions
A program instruction has two parts – the instruction part or operator, and a data part or operand. 1 1 1 Operator ADD to the accumulator Operand The contents of memory location 1101 OCR GCSE Computing © Hodder Education Slide 5

6 Chapter 4: Instructions
This is a part of memory in a PC. It shows some instructions, both in hexadecimal notation and also unassembled, so you can see the assembly language equivalent. OCR GCSE Computing © Hodder Education Slide 6

7 Chapter 4: Instructions
How does a computer tell the difference between program instructions and data? It all depends on where the data is in memory. OCR GCSE Computing © Hodder Education Slide 7


Download ppt "Chapter 4: Representing instructions"

Similar presentations


Ads by Google