Memory Reference Instruction
Memory Reference Instruction
MRI Definition:
Memory reference instructions are those commands or instructions which are
In the custom to generate a reference to the memory. These instructions are
known as Memory Reference Instruction
TYPES OF MRI :
There are seven memory reference instruction which are as follows :
1. AND
2. ADD
3. LDA
4. STA
5. BUN
6. BSA
7. ISZ
Memory-Reference Instructions
Symbol Operation OPCODE Description Symbolic description
Decoder (Hexadecimal)
I=0 I=1
AND D0 0xxx 8xxx AND memory word to AC AC <- AC ^ M[AR]
ADD D1 1xxx 9xxx Add memory word to AC AC <- AC + M[AR], E <- Cout
BSA D5 5xxx Dxxx Branch and save return address M[AR] <- PC, PC <- AR +1
ISZ D6 6xxx Exxx Increment and skip if Zero M[AR] <- M[AR] + 1,
If M[AR] + 1 = 0 then PC <- PC+1
AND to AC
• This is an instruction that performs the AND logic Operation on pairs of bits in
AC and the memory word specified by the effective address.
• The result of the operation is transferred to AC.
• The microoperations that execute this instruction are:
D0T4 : DR <- M[AR]
D0T5 : AC <- AC ^ DR, SC <- 0
Timing Control of AND:
• The two timing signal are T4,T5.
• T4 transfer the operand from memory in DR.
• T5 transfer to AC result AND logic operation.
• T0 is to start a new instruction cycle.
ADD to AC:
• This Instruction adds the content of the memory word specified by the
effective address to the value of AC.
• The sum is transferred into AC and the output carry C out is transferred to
the E (extended accumulator ) flip-flop.
• The microoperations needed to execute this instruction are