Instructions Flashcards

1
Q

What defines a stored program architecture?

A

The program stored in memory defines the microprocessor’s functionality

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

What is the difference between the PIC 16F84A and MIPS architectures?

A

PIC 16F84A uses 14-bit instructions and 8-bit data words (Harvard) while MIPS uses 32-bit instructions and data words (Von Neumann)

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

What are the key fields in an instruction?

A

Opcode (operation) Operands (data) and optionally a Function or Modifier

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

What is the purpose of the opcode in an instruction?

A

It specifies the operation the instruction will perform such as ADD or SUB

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

What are the three types of MIPS instructions?

A

R-Type (arithmetic/logical) I-Type (immediate values) and J-Type (jump/branch)

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

What is an R-Type instruction in MIPS?

A

An instruction used for arithmetic and logical operations like ADD or SUB

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

How are opcodes represented in the PIC 16F84A?

A

With 6 unique bits identifying each operation

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

What does an assembly mnemonic represent?

A

A human-readable symbol for a machine code operation such as LDA or ADD

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

What is immediate (literal) addressing?

A

Data is contained directly within the instruction itself

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

How does direct (absolute) addressing work?

A

The instruction specifies the exact memory address of the data

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

What is indirect addressing?

A

A register stores the memory address where the data is located

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

What is relative addressing used for?

A

To specify a memory address using a base address and an offset

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

What is the stack in microprocessor design?

A

A special memory area used for temporary data storage

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

What is the difference between PUSH and POP operations in a stack?

A

PUSH saves data to the stack while POP retrieves data from the stack

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

What does LIFO mean in stack management?

A

Last In First Out - the last item added is the first one retrieved

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

How are instructions structured in MIPS?

A

They include fields like opcode, source registers, destination registers and function modifiers

17
Q

Why might an opcode have extra bits in its design?

A

To simplify decoding and organization of instructions

18
Q

What is source-destination sharing in instructions?

A

When one register acts as both a source and a destination to save opcode space

19
Q

What is memory-memory architecture?

A

architectures that access the main memory using the large binary addresses associated with that memory

20
Q

What is register-register architecture?

A

Data is firstly loaded from memory into registers.
The instruction only then needs to specify which of the small number of registers to use as inputs and another register to receive the result.