Basic Types of CPU Flashcards
(14 cards)
According to Instruction Set Architecture:
- Accumulator-based
- General Purpose Register Type
- Stack Machine
1-operand CPU
Accumulator-based
Where intermediate arithmetic and logic results are stored.
Accumulator-based
What are the different registers in the Accumulator-based CPU?
A, PC, X, SP, Flags register
What is the equivalent accumulator-based data transfer of this code?
y = x
load x
store y
What is the equivalent accumulator-based of this code?
z = b + c
load b
add c
store z
What is the equivalent accumulator-based of this code?
z = (b-c) * d
load b
sub c
mul d
store z
The most common type of CPU, Intel 80x86 is of this type but with enhanced/modified features.
General Purpose Register (GPR Type)
Other GPR-type CPUs such as _______:________ registers cannot be divided into higher and lower bytes
PDP-11: 16 bit
In PDP-11, ___ is used as PC and ___ serves as SP
R7, R6
Any computer system that has no general purpose register and simply uses the stack for computations falls on this category
Stack Machine
What are the registers in a stack machine?
PC
X (serves as memory address register for operands)
Flags
In Stack Machine, arithemetic expressions should first be translated to ________ form to easily write a program for a stack
postfix