Processor Instruction Set Flashcards

1
Q

Explain an instruction set?

A

Set of instructions that a processor can carry out.
Each processor has its own one, a unique one.

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

What is opcode and operand ?

A

Opcode :Type of operation that is to be carried out
Operand: pieces of data on which operation is performed.

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

A processors instruction set is usually stored in machine code. What is machine code?

A

Instructions formed entirely form the binary digits 0 and 1.

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

What is immediate addressing?

A

Value used by the operand is to be treated as the actual value. FOR eg: if operand 18, value used but the operation would be 18.

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

Direct addressing ?

A

Value specified by the operand refers to the memory address. For eg:
Operand =18 the value used for the operation would be the content of the memory location 18 is.

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

What is logical shifting ?

A

Performed on binary numbers which involves shifting all of the bits in a number, doubling or halving the number.

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

What is an interrupt?

A

Signal sent to the processor by another part of the processor asking for attention of the processor.

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

Give eg of both hardware and software situations that may occur to cause interrupt.

A

Hardware: when you remove the mouse it informs the processor that this has happened.
Software: stack overflow

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

How do you tell that an interrupt has occurred?

A

Change in the content of the status register between the execute and fetch stages of the cycle

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

Explain how the vectored interrupt method worked to handle interrupts.

A

Stops executing the program and places content of registers on the system stack.refered to as a volatile environment.

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

What happens after the processor saves its progress on the system stack.

A

Loads the appropriate interrupt service routine, which is a series of instructions for angling the interrupt that is specific to the type of interrupt.

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

What happens after the interrupt has been executed by the processor

A

Returns back to the volatile environment and resumes back to where it was.

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

Explain what happens when an interrupt occurs?

A
  1. Current processor state is saved on the stack.
  2. Source of interrupt is identified.
  3. Appropriate service routine is called.
  4. Processor state is restored.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly