Chapter 3: ISA & Intro to Assembly Flashcards

1
Q

For a stored program computer, the CPU…

A

reads instructions from memory and executes them

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

For a stored program computer, temporary data is stored…

A

in registers

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

For a stored program computer, the PC

A

(Program Counter) is a register that points at the next instruction (inside the memory) to be executed

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

For a stored program computer, the CCR

A

(Condition Code Register) contains the flag bits for the processor

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

Computers can execute instructions ranging from

A

8-bits wide to multi-bytes wide

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

The instruction format defines the anatomy of an instruction:

A
  • Number of operands
  • Number of bits devoted to defining each operation
  • Format of each operation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The PC is

A

(Program Counter) points to the next instruction and is incremented after each execution

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

The stored-program computer operates in a

A

fetch/execute two-phase mode

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

In the stored-program computer’s fetch mode:

A

the next instruction is read from memory AND decoded

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

In the stored-program computer’s execute mode:

A

the instruction is interpreted and executed according to the CPU’s logic

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

What is pipelining?

A

When fetch and execute operations overlap

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

What are the features of a stored program computer?

A
  • Register file (r0-ri)
  • PC (Program Counter)
  • IR (Instruction Register)
  • MAR ( Memory Address Register)
  • MBR (Memory Buffer Register)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the Register File?

A

(r0-ri) is a set of general-purpose registers that store temporary working data

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

A computer requires at least one ______ register

A

General purpose

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

What is the PC

A

(Program Counter) contains the address of the next instruction to be executed. I.e points to the location in memory containing the next instruction

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

What is the IR

A

(Instruction Register) holds the instruction most recently read from memory (the instruction currently being executed)

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

What is the MAR

A

(Memory Address Register) stores the address of the location in main memory that is currently being accessed by either a read or write operation

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

What is the MBR

A

(Memory Buffer Register) stores the data that has just been read from main memory OR data that is to be written to main memory

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

In the fetch-phase, the PC…

A

(Program Counter) supplies the address of the next instruction to be executed to the MAR (Memory Address Register) and is incremented by the size of an instruction

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

In the fetch-phase, the MAR…

A

(Memory Address Register) reads the instruction which will be sent to the MBR

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

In the fetch-phase, the MBR…

A

Receives the instruction pointed at by the MAR and sends it to the IR

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

In the fetch-phase, the IR…

A

Receives the instruction from the MBR and decodes it

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

In the execute-phase, operands may be…

A

read from the register file or transferred to the ALU (Arithmetic Logic Unit) where they are operated on

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

In the execute-phase, if the operation requires memory access, the address is read from the …

A

IR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
In the execute-phase, if the operation requires memory access, the address is sent to the...
MAR
26
In the execute-phase, if the operation requires memory access, the contents of the memory address are placed in the...
MBR
27
In the execute-phase, if the operation requires memory access, the contents of the MBR are finally placed in the...
Register
28
With constants, the IR (Instruction Register) paths the literal operand to either the...
Register file, the ALU, or the MBR
29
Flow control is
action that modifies the normal instruction sequence
30
Conditional behavior allows
the processor (based on the CCR flags) to select one of two courses of action: - Continue executing the next instruction in sequence - Load the PC with a new value and executing a branch of another region of code
31
The root of flow control is
The ALU which determines the flags of the CCR
32
The CCR is determined by the
ALU
33
The four status flags are:
Zero (Z) flag if the result is zero Negative (N) flag (in two’s complement) if the result is negative Carry (C) flag if the result generated a carry-out oVerflow (V) flag if the result generated arithmetic overflow
34
In terms of status flags, the difference between CISC and RISC is
CISC (Complex Instruction Set Computer) automatically sets the status flags after each operation RISC (Reduced Instruction Set Computer) requires the programmer to request to update the flags
35
In ARM, general purpose registers can be used for
Anything
36
In ARM, there are __ specific purpose registers
2
37
Registers in arm are how many bits wide?
32 (4 bytes)
38
What are the two addressing modes supported by ARM?
Literal/immediate and register-indirect/pointer-based/indexed
39
What addressing mode is not supported by ARM?
Direct/absolute
40
What is Literal/immediate addressing?
the actual value is part of the instruction
41
What is direct/absolute addressing?
the instruction contains the memory address of the instruction
42
What is register-indirect/pointer-based/indexed addressing?
the register contains the address of the operand
43
What are the three types of instructions?
Memory-to-register Register-to-memory Register-to-register
44
What instruction type is supported by ARM?
Register-to-register
45
LDR and STR are special forms of what?
pseudo-instructions
46
In terms of the amount of addresses that can be stored in an instruction, CISC has ___ and RISC has ___ typically
CISC: 2 RISC: 3
47
RISC typically has ___ address instructions where they are all ___
3 address instructions which are all registers
48
Does RISC support 3 memory address instructions?
NO
49
Does RISC support 3 register instructions?
Yes
50
What does ARM stand for?
Advanced RISC Machines
51
In ARM, a half-word is ____ bits and a full word is ____ bits
A half word is 2 bytes (16 bits) A full word is 4 bytes (32 bits)
52
ARM's register set has ___ registers
16 registers
53
ARM's general purpose registers are:
r0 - r12
54
ARM's PC register is r__
r15
55
ARM's CPSR stands for
Current Program Status Register
56
ARM's CPSR contains flag bits at what indexes?
28, 29, 30, 31
57
What are the two types of ARM statements?
Executable instructions Assembler directives
58
Assembler directives are:
Statements that tell the assembler something about the environment
59
Executable Instructions are...
Statements that are executed by the computer
60
Lines to be executed by the computer are called
Executable Instructions
61
Lines that tell the assembler something about the environment are called
Assembler Directives