5.3 - The Processor Instruction Set Flashcards

1
Q

What is an instruction set?

A

Describe the commands a processor can perform

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

What a different toe of instruction types are there?

A

Data transfer: LDA, STR
Arithmetic operations: ADD, SUB
Comparison operations: CMP
Logical operations: AND, OR, NOT
Branch - conditional/unconditional
Shift operations: left/right bit shifts

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

What is machine code?

A

Only language the processor can understand
Combinations of 0’s and 1’s

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

What is the opcode (operation code)?

A

First few bits, it includes:
- the actual command the processor needs to carry out (ADD, SUB)
- the addressing mode

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

What is the addressing mode?

A

Specifies whether the operand is the actual data, the memory address where the data is held, or a register

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

What is the operand?

A

One or more items of data (values, memory addresses or registers) that are to be used in the instruction

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

What decides the number of bits allocated for the opcode and operand?

A

Varies depending on the processor
Changes with word length

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

What is immediate addressing?

A

When the operand is the actual value to be used in the instruction

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

What is direct addressing?

A

The operand in this case is the address of the location in memory of the data to be used

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