Computer Architectures and Assembly Language Programming Flashcards

1
Q

A basic computer system consists of?

A
CPU
System Clock
Primary Memory (RAM)
Secondary Memory (HHD, SSD)
Peripheral I/O Devices
Bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The CPU does what?

A

Executes instructions

Controls the transfer of data across the bus

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

The CPU consists of?

A

Control Unit (CU)
Arithmetic Logic Unit (ALU)
Registers

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

The Control Unit does what?

A

The CU directs the execution of instructions

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

The Arithmetic Logic Unit does what?

A

The ALU performs arithmetic and logical operations on data stored in registers

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

Registers are?

A

Registers are binary storage units within the CPU

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

The System Clock does what?

A

Generates a clock signal to synchronize the CPU and other clocked devices

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

Primary Memory is?

A

Often called Random Access Memory (RAM)
Can be written to and read from
Is volatile
Is used to store program instructions and program data (variables)
Consists of a sequence of addressable memory locations

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

The Bus is?

A

A set of parallel data/signal lines
Is used to transfer information between computer components
Often subdivided into address, data, and control busses

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

Secondary Memory is?

A

Is used to hold a computer’s file system
Is non-volatile read/write memory
Usually embodied on a hard disk drive (HDD)

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

Peripheral I/O Devices do what?

A

Allow communication between the computer and the external environment

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

Accumulator Machines are a type of CPU Architecture where?

A

Operands for an instruction come from the accumulator register (ACC) and from a single location in RAM
ALU results are always put into the ACC
The ACC can be loaded from or stored to RAM

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

Load/Store Machines are a type of CPU Architecture where?

A

Only load and store instructions can access RAM
Other instructions operate on specified registers in the
register file, not on RAM
Registers are more quickly accessed than RAM, so this is fast

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

RISC type Architecture:

A

Uses only simple instructions that can be executed in one machine cycle
Machine instructions are always the same size

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

CISC type Architecture:

A

May have instructions that take many cycles to
execute
Machines instructions vary in length, and may be followed by “immediate” data

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

The Instruction Cycle is?

A

Also called the fetch-execute or fetch-decode-
execute cycle
The CPU executes each instruction in a series of
small steps:
1) Fetch the next instruction from memory into the
instruction register (IR)
•The Program Counter register (PC) contains its address
2) Increment PC to point to the next instruction
3) Decode the instruction
4) If the instruction uses an operand in RAM, calculate its address
5) Fetch the operand
6) Execute the instruction
7) If the instruction produces a result that is stored in RAM, calculate its address
8) Store the result

17
Q

Assembly Language Programs consist of?

A

A series of statements, each corresponding to a machine instruction

18
Q

Each statement in an Assembly Language Programs consists of?

A

An opcode, and a variable number of operands

19
Q

Instructions are stored?

A

Sequentially in memory

20
Q

What can optionally prefix any statement?

A

A label

21
Q

Pseudo-op give?

A

The assembler extra information but do not generate machine instructions

22
Q

Assemblers do what?

A

They translate assembly source code into machine code

23
Q

Von Neumann architecture RAM contains?

A

Both data and programs (instructions)

24
Q

In Harvard architecture data and programs are?

A

stored in separate memories