Instruction set Flashcards

1
Q

What is an instruction set?

A

The set of machine code instructions that a specific processor can understand/execute

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

When can two different type of processors be compatible?

A

If they operate on the same instructions, use the same machine code

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

What are the two parts that make up a machine code instruction?

A

The opcode and the operand

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

What does the opcode state?

A

The opcode is the instruction to perform.

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

What does the operand state?

A

The operand is the value or memory address to be used

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

What are the two addressing modes?

A

Immediate and Direct Addressing

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

What is immediate addressing?

A
  • The data in the operand is immediately available for use as it represents a value e.g. 6 or 187
  • This is a very fast addressing mode
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is direct addressing?

A
  • The data in the operand refers to a memory location

- Disadvantage is that code cannot be relocated

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

What is branching?

A

Branching is used for conditional statements or unconditional statements

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

What is a label?

A

A sequence of characters that identify a location in the source code

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

In operations what does the # symbol indicate

A

The # indicates that the operand is a number, uses immediate addression

No # indicates that the operand is a memory address.

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

What does the halt operation do?

A

It terminates the program operation.

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

How many bits may each machine code instruction occupy up to? (if it provides a diagram)

A

32 bits, usually 6 slots
if there are more or less slots just count up
for example if there are 5 slots do - 1 2 4 8 16, 16 is the 5th slot

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

How many different opcodes can be represented with 4 bits

A

2^4 = 16 different opcodes

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