Mod
- dule 10:
A A Wor
- rking Com
- mputer
1
Mod odule 10: A A Wor orking Com omputer 1 CP CPSC SC 121: - - PowerPoint PPT Presentation
Mod odule 10: A A Wor orking Com omputer 1 CP CPSC SC 121: 121: the BI BIG ques questions ns How can we build a computer that is able to execute a user-defined program? We are finally able to answer this question. Our
1
2
3
4
5
6
7
8
9
10
11
12
Memory (contains both programs and data). Control Unit Arithmetic & Logic Unit CPU (Central Processing Unit) Input/Output
13
...
1 2 3 4 5 6 7 8 9 10 11
...
01010111
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%eax %esp %ecx %ebp %edx %esi %ebx %edi 1 2 3 4 5 6 7
44
45
46
47
48
49
halt nop cmovXX rA, rB irmovl V, rB rmmovl rA, D(rB) mrmovl D(rB), rA OPI rA, rB jXX Dest call Dest ret pushl rA popl rA 1 0 9 0 2 fn r rB B 0 rA F 6 fn rA rB A 0 rA F 3 0 F rB V 4 0 rA rB D 5 0 rA rB D 8 0 Dest 7 fn Dest 1 2 3 4 5
50
51