1 Instructions Formats
1 Instructions Formats
IAS MACHINE
MAR🡨PC
MBR🡨M[MAR] Arithmetic & Logic Circuits
Input/output
IBR🡨MBR<20..39> IBR🡨MBR<20..39> Equipments
IR🡨MBR<0..7> IR🡨MBR<0..7>
MAR🡨MBR<8..19> MAR🡨MBR<8..19> MBR
MBR🡨M[MAR] MBR🡨AC
AC🡨MBR M[MAR}🡨MBR
IR🡨IBR<0..7> IR🡨IBR<0..7>
MAR🡨IBR<8..19> IBR PC
MBR🡨M[MAR]
AC🡨AC + MBR Main
PC🡨PC+1 Memory
MAR🡨PC
IR
MBR🡨M[MAR] MAR
Control
Circuits
ACAC= MQ
MEMORY 7
3
1. LOAD M(X) 500, ADD M(X)
501
2. STOR M(X) 500, (Other Ins)
.....
500. 3
50
501. 4 LOADMBR
ADD MBR=
50
M(X)
(Other
M(X) 0
3STOR0
Ins) 4
501
M(X)
PC 21
MA
R
501
500
21
MB LOAD M(X) 500, ADD M(X)
R
STOR M(X) 500,
43 (Other Ins)
501
IR LOAD
STOR
ADD M(X)M(X)
IBR ADD
(Other
M(X) Ins)
501
AC 37
Add
50
IBR PC
Mar
MAR ==1
PC ←
1
M(X) PC
2
←PC 3 ADD
LOAD M(X) 500,
M(X) 501
4
MAR STOR M(X) 500,
IR MAR
MAR = =
MAR =add
1= = (Other Ins)
=500
add
add
501
500 ==
2 add
501
1500
2
ACAC= MQ
MEMORY 7
3
1. LOAD M(X) 500, ADD M(X)
501
2. STOR M(X) 500, (Other Ins)
.....
500. 3
50
501. 4 LOADMBR
ADD MBR=
50
M(X)
(Other
M(X) 0
3STOR0
Ins) 4
501
M(X)
PC 21
MA
R
501
500
21
MB LOAD M(X) 500, ADD M(X)
R
STOR M(X) 500,
43 (Other Ins)
501
IR LOAD
STOR
ADD M(X)M(X)
IBR ADD
(Other
M(X) Ins)
501
AC 37
Add
50
IBR PC
Mar
MAR ==1
PC ←
1
M(X) PC
2
←PC 3 ADD
LOAD M(X) 500,
M(X) 501
4
MAR STOR M(X) 500,
IR MAR
MAR = =
MAR =add
1= = (Other Ins)
=500
add
add
501
500 ==
2 add
501
1500
2
Instruction
• Definition:
• The collection of different instructions that the CPU can execute is referred to
as the CPU’s instruction set.
•What must an instruction set
specify…?
• Which Operation to perform
• Where to find the operand or
operands
• Where to put the result, if there is
result
• Where to find the next instruction
Instruction Representations
• Each instruction is represented by sequence of bits
• The instruction is divided into two fields
• Opcode field
• Operand field
• This operand field further divided into one to four fields.
• This layout of the instruction is known as the “Instruction
Format”
• Simple instruction format
Operand Operand Result Next
Opcode
Address1 Address2 Address1 Instruction
CLASSIFICATION OF INSTRUCTIONS
IAS Instruction set
IAS Instruction set (continued)
Problem
● Increment PC
● Unless told otherwise