Basic Types of CPU Flashcards

(14 cards)

1
Q

According to Instruction Set Architecture:

A
  1. Accumulator-based
  2. General Purpose Register Type
  3. Stack Machine
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

1-operand CPU

A

Accumulator-based

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where intermediate arithmetic and logic results are stored.

A

Accumulator-based

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the different registers in the Accumulator-based CPU?

A

A, PC, X, SP, Flags register

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the equivalent accumulator-based data transfer of this code?
y = x

A

load x
store y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the equivalent accumulator-based of this code?
z = b + c

A

load b
add c
store z

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the equivalent accumulator-based of this code?
z = (b-c) * d

A

load b
sub c
mul d
store z

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The most common type of CPU, Intel 80x86 is of this type but with enhanced/modified features.

A

General Purpose Register (GPR Type)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Other GPR-type CPUs such as _______:________ registers cannot be divided into higher and lower bytes

A

PDP-11: 16 bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In PDP-11, ___ is used as PC and ___ serves as SP

A

R7, R6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Any computer system that has no general purpose register and simply uses the stack for computations falls on this category

A

Stack Machine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the registers in a stack machine?

A

PC
X (serves as memory address register for operands)
Flags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In Stack Machine, arithemetic expressions should first be translated to ________ form to easily write a program for a stack

A

postfix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly