Machine Instruction Flashcards

1
Q

What is the basic function of a computer

A

Execution of a program

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

What are the 2 major components of a machine instruction

A

Function code/opcode - specifies the function performed

Operand addresses - specifies the location of the operands used

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

What are the main methods of address format

A

3-address machines

2-address machines

1-address machines

0-address machines

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

3 address machines

A

In 3-address machines, all three operands are explicit in each instruction. Containing the address of 2 operands and the address of the result making 3

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

2-address machines

A

Each instruction specifies two operands. The result would replace one of the two operands

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

1-address machines

A

In this the accumulator is implicitly both a source operand and the destination of the operation

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

0-machine address

A

In this the locations of the operands and the result to be stored are known

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

What is an instruction cycle

A

It is a cycle that the central processing unit follows from boot-up until the computer has shut down in order to process instructions

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

Registers involved in instruction cycle

A
  1. Memory address registers(MAR): It specifies the address of a read or write operation in memory
  2. Memory Buffer Register(MBR): It holds the memory value to be stored, or the last value read from the memory.
  3. Program counter(PC): holds the address of the next instruction to be fetched
  4. Instruction Register(IR): holds the last instruction fetched
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the 3 operations in an instruction cycle

A
  1. Fetch cycle
  2. Decode instruction cycle
  3. Execute cycle
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe the function of the fetch cycle

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

Describe the function of decode instruction cycle

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

Describe the function of the execute cycle

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

What is a computer instruction

A

It is a binary code that specifies a sequence of micro operations for the computer

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

What are the 3 basic computer instructions

A
  1. Memory-Reference instructions
  2. Register-Reference instructions
  3. Input-Output instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly