Part 9: x86 basic architecture
A computer application is a table of machine instructions to be stored in memory, then converted into binary so the processor can deal with them. CPU, Memory and I/O devices are all connected via system bus.
The CPU consists of 4 different parts which are:
-
Control unit. Storing, retrieving, decoding from CPU to memory
-
Execution unit. Where execution and fetching instructions occurs
-
Registers. Temporary data storage during execution
-
Flags. Indicate special events during execution
Cpus tend to run like such:
-
Cpu fetches 4 bytes from the memory
-
Cpu loads it
-
Cpu reads binary pattern
-
Cpu executes its procedure
-
Memory pointer changes to next address and process repeats