This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:multiasm:cs:chapter_3_4 [2026/01/10 10:00] – pczekalski | en:multiasm:cs:chapter_3_4 [2026/01/10 20:11] (current) – pczekalski | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| ===== Control unit ===== | ===== Control unit ===== | ||
| - | The function of the control unit, also known as the instruction processor, is to fetch, decode and execute instructions. It also generates signals to the execution unit if the instruction being executed requires | + | The function of the control unit, also known as the instruction processor, is to fetch, decode and execute instructions. It also generates signals to the execution unit if the instruction being executed requires |
| A typical control unit contains some essential elements: | A typical control unit contains some essential elements: | ||
| * Instruction register (IR). | * Instruction register (IR). | ||
| Line 51: | Line 51: | ||
| The arithmetic logic unit (ALU) is the element that performs logical and arithmetical calculations. It uses data coming from registers, the accumulator or from memory. Data coming from memory for arithmetic and logic instructions is stored in the temporal register. The result of calculations is stored back in the accumulator, | The arithmetic logic unit (ALU) is the element that performs logical and arithmetical calculations. It uses data coming from registers, the accumulator or from memory. Data coming from memory for arithmetic and logic instructions is stored in the temporal register. The result of calculations is stored back in the accumulator, | ||
| - | Besides the result, ALU also returns some additional information about the calculations. It modifies the bits in the flag register, which comprises | + | Besides the result, ALU also returns some additional information about the calculations. It modifies the bits in the flag register, which contains |
| Typically, the flags register includes: | Typically, the flags register includes: | ||