Presentation is loading. Please wait.

Presentation is loading. Please wait.

Processor (ALU & CU), data bus, registers, word size.

Similar presentations


Presentation on theme: "Processor (ALU & CU), data bus, registers, word size."— Presentation transcript:

1 Processor (ALU & CU), data bus, registers, word size

2 Co-ordinates 320, 168 A little graphics such as this is called a sprite; it is a set of pixels gathered together as an object. This sprite is 5 X 5 pixels. Look at the pixel lightly shaded in the graphic representation below. Let us imagine that it has screen co-ordinates 320 along and 168 down, just for sake of illustration.

3 Co-ordinates 320, 168 A little graphics such as this is called a sprite; it is a set of pixels gathered together as an object. This sprite is 5 X 5 pixels. Look at the pixel lightly shaded in the graphic representation below. Let us imagine that it has screen co-ordinates 320 along and 168 down, just for sake of illustration. Typically a graphic may have to move on the screen according to instructions given by a program. For example, it may have to move 5 to the right and 5 down in one time unit. So in order to move the graphic in the way described, the processor must Calculate new co-ordinates for each of the pixels, 25 in all Send electronic signals to the monitor to clear the old graphic (sprite) Send electronic signals to the monitor corresponding to the new co-ordinates to get a new image Perhaps also a decision has to be made as to whether the sprite has contacted with the ‘wall’ on the right hand side.

4 Looking at the middle part, THE PROCESSOR, in more detail RAM Control Unit (CU) Arithmetic & Logic Unit (ALU) The control unit manages the data transfers withing the processor All actions in a computer come down to performing arithmetic and logic (is x bigger than y?) The ALU does this.

5 11010100 RAM 525 526 527 528 524 00010000 Data Bus DECODE Arithmetic & Logic Unit (ALU) Registers 00010000 10010111 00011111 11000011 00110011 529 530 531 523 522 521 520 11010100 ☺ ☺ ☺ ☺ ☺ ☺ Pixels on a screen >>>


Download ppt "Processor (ALU & CU), data bus, registers, word size."

Similar presentations


Ads by Google