SlideShare a Scribd company logo
5
Most read
MEMORY REFERENCE INSTRUCTION
M.RISHI VINTHIYA
M.SC(IT)
MEMORY REFERENCE INSTRUCTIONS
 There are seven different memory-reference
instructions
 Actual execution of the instruction in the bus
system requires a sequence of micro
operations as data in memory cannot be
processed directly
 Micro operations are needed for the data to be
read from memory to a register to operate them
on logic circuits
Memory reference
 Effective address (EA)
o Any operand to an instruction which
references memory
 DR → Data Register
 AR → Address Register
 IR → Instruction Register
 PC → Program Counter
 AC→ Accumulator
 SC → Sequence Counter
 AND to AC
 Performs the AND logic operations on pairs of bits
in AC and the memory word specified by the
effective address
 Two timing signals are needed
• In T4 transfering operand from memory into DR
• In T5 transfering result of AND logic operation
between the contents of DR and AC
• In T5 SC is cleared to 0 and control is transfered
to T0 to start a new instruction cycle
Example:
• D0T4 : DR←M[AR]
• D0T5 : AC←AC∧ DR, SC←0
 ADD to AC
 Adds the contents of memory word specified
by the effective address to the value of AC
 Sum is transferred into AC and the output carry
Cout is transferred to the E(extended
accumulator) flip flop
 Two timing signals are needed but decoder D1
instead of D0
Example:
• D1T4 : DR←M[AR]
• D1T5 : AC←AC+DR, E←Cout SC←0
 LDA:Load to AC
 Transfers the memory word specified by the
effective address to AC
 Necessary to read the memory word into DR
first and transfer the contents of DR into AC
 there is no direct path from bus into AC
 to maintain one clock cycle as well
Example:
 D2T4 : DR←M[AR]
 D2T5 : AC←DR SC←0
 STA:Store AC
 Stores the content of AC into the
memory word specified by the
effective address
 The output of AC is applied to the
bus and the data input of memory is
connected to the bus
Example:
 D3T4 : M[AR]←AC, SC←0
 BUN:Branch Unconditionally
 PC is incremented at time T1 to prepare it for
the address of the next instruction in the
program sequence
 BUN transfers the program to the instruction
specified by the effective address
 Allows the programmer to specify an instruction
out of sequence and we say that the program
branches (jumps) unconditionally Example:
 D4T4 : PC←AR SC←0 (resetting SC transfers
control to T4 )
 BSA:Branch and Save Return Address
 Useful for branching to a portion of the program
called a subroutine or procedure
 When executed, it stores the address of the next
instruction in sequence (which is available in PC)
into a memory location specified by the effective
address
 (Effective address + 1) is then transferred to PC to
serve as the address of the first instruction in the
subroutine
 The return to the original program is accomplished
by the BUN instruction placed at the end of the
subroutine
Example:
 ISZ:Increment and Skip if Zero
 Increments the word specified by the effective address
 If the incremented value is equal to 0, PC is incremented by 1
 When a negative number(in 2's compelement) stored in memory
word is repeatedy incremented by 1 it eventually reaches zero
 At this time PC is incremented by one in order to skip the next
instruction in the program
 It is necessary to read the word into DR, increment DR and store
the word back into memory since it is not possible to increment a
word inside the memory
Example:
 D6T4 : DR←M[AR]
 D6T5 : DR←DR+1
 D6T6 : M[AR] ← DR, if (DR=0) then (PC←PC+1), SC←0

More Related Content

PPTX
block diagram of 8086
PDF
Data representation in computers
PPT
Instruction set of 8086
PPT
80486 microprocessor
PPTX
Instruction set of 8086
PPTX
I/O Organization
PPTX
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
block diagram of 8086
Data representation in computers
Instruction set of 8086
80486 microprocessor
Instruction set of 8086
I/O Organization
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...

What's hot (15)

PPTX
memory reference instruction
PPTX
Byte and string manipulation 8086
PPTX
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
PPT
Basic computer organization
PPTX
bus and memory tranfer (computer organaization)
PPT
Memory reference instruction
PPTX
Unit-4 (IO Interface).pptx
PPTX
Pipelining And Vector Processing
PPT
Stack and subroutine
PPT
Instruction format
PPT
Interrupts
PPTX
Computer architecture input output organization
PPTX
8051 memory
PPT
Instruction codes and computer registers
PDF
CS4109 Computer System Architecture
memory reference instruction
Byte and string manipulation 8086
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
Basic computer organization
bus and memory tranfer (computer organaization)
Memory reference instruction
Unit-4 (IO Interface).pptx
Pipelining And Vector Processing
Stack and subroutine
Instruction format
Interrupts
Computer architecture input output organization
8051 memory
Instruction codes and computer registers
CS4109 Computer System Architecture
Ad

Similar to Memory reference (20)

PPTX
Memory Reference Instructions
PPTX
Basic computer organization design
PPTX
Microcontroller architecture programming and interfacing
PDF
PDF
computer organization and assembly language giki course slides
PDF
CAAL_CCSU_U1.pdf
PPT
8051 instruction_set.ppt
PPTX
Unit_2 (4).pptx
PPTX
Embedded system and Internet of things-1.pptx
PDF
computer organization and assembly language giki course slides
PPTX
COA Module 3 PART 2.pptx
PDF
Computer Organization and Architecture Themes and Variations 1st Edition Alan...
PDF
11. Lecture.pdf
PDF
COA UNIT-2 PPT FOR CSE STUDENTS FOR ALLE
PPT
8051 Programming Instruction Set
DOCX
Introduction to instruction set. new course
PPT
COMPUTER ORGANIZATION - Design of control unit final
PPT
Register Transfer Language and Micro Operations
PPT
Memory Reference instruction
PPT
8051d.ppt microcontroller instruction set summary
Memory Reference Instructions
Basic computer organization design
Microcontroller architecture programming and interfacing
computer organization and assembly language giki course slides
CAAL_CCSU_U1.pdf
8051 instruction_set.ppt
Unit_2 (4).pptx
Embedded system and Internet of things-1.pptx
computer organization and assembly language giki course slides
COA Module 3 PART 2.pptx
Computer Organization and Architecture Themes and Variations 1st Edition Alan...
11. Lecture.pdf
COA UNIT-2 PPT FOR CSE STUDENTS FOR ALLE
8051 Programming Instruction Set
Introduction to instruction set. new course
COMPUTER ORGANIZATION - Design of control unit final
Register Transfer Language and Micro Operations
Memory Reference instruction
8051d.ppt microcontroller instruction set summary
Ad

More from rajshreemuthiah (20)

PPTX
PPTX
PPTX
PPTX
polymorphism
PPTX
solutions and understanding text analytics
PPTX
interface
PPTX
Testing &ampdebugging
PPTX
concurrency control
PPTX
Education
PPTX
Formal verification
PPTX
Transaction management
PPTX
Multi thread
PPTX
System testing
PPTX
software maintenance
PPTX
exception handling
PPTX
e governance
PPTX
recovery management
PPTX
Implementing polymorphism
PPSX
Buffer managements
PPTX
os linux
polymorphism
solutions and understanding text analytics
interface
Testing &ampdebugging
concurrency control
Education
Formal verification
Transaction management
Multi thread
System testing
software maintenance
exception handling
e governance
recovery management
Implementing polymorphism
Buffer managements
os linux

Recently uploaded (20)

PPTX
Moving the Public Sector (Government) to a Digital Adoption
PDF
Lecture1 pattern recognition............
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PPTX
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
PPTX
1_Introduction to advance data techniques.pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPT
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PDF
Mega Projects Data Mega Projects Data
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Computer network topology notes for revision
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
Global journeys: estimating international migration
PDF
Foundation of Data Science unit number two notes
PPT
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Moving the Public Sector (Government) to a Digital Adoption
Lecture1 pattern recognition............
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
1_Introduction to advance data techniques.pptx
Supervised vs unsupervised machine learning algorithms
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
Introduction to Knowledge Engineering Part 1
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Mega Projects Data Mega Projects Data
STUDY DESIGN details- Lt Col Maksud (21).pptx
climate analysis of Dhaka ,Banglades.pptx
Computer network topology notes for revision
IBA_Chapter_11_Slides_Final_Accessible.pptx
Global journeys: estimating international migration
Foundation of Data Science unit number two notes
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx

Memory reference

  • 2. MEMORY REFERENCE INSTRUCTIONS  There are seven different memory-reference instructions  Actual execution of the instruction in the bus system requires a sequence of micro operations as data in memory cannot be processed directly  Micro operations are needed for the data to be read from memory to a register to operate them on logic circuits
  • 4.  Effective address (EA) o Any operand to an instruction which references memory  DR → Data Register  AR → Address Register  IR → Instruction Register  PC → Program Counter  AC→ Accumulator  SC → Sequence Counter
  • 5.  AND to AC  Performs the AND logic operations on pairs of bits in AC and the memory word specified by the effective address  Two timing signals are needed • In T4 transfering operand from memory into DR • In T5 transfering result of AND logic operation between the contents of DR and AC • In T5 SC is cleared to 0 and control is transfered to T0 to start a new instruction cycle Example: • D0T4 : DR←M[AR] • D0T5 : AC←AC∧ DR, SC←0
  • 6.  ADD to AC  Adds the contents of memory word specified by the effective address to the value of AC  Sum is transferred into AC and the output carry Cout is transferred to the E(extended accumulator) flip flop  Two timing signals are needed but decoder D1 instead of D0 Example: • D1T4 : DR←M[AR] • D1T5 : AC←AC+DR, E←Cout SC←0
  • 7.  LDA:Load to AC  Transfers the memory word specified by the effective address to AC  Necessary to read the memory word into DR first and transfer the contents of DR into AC  there is no direct path from bus into AC  to maintain one clock cycle as well Example:  D2T4 : DR←M[AR]  D2T5 : AC←DR SC←0
  • 8.  STA:Store AC  Stores the content of AC into the memory word specified by the effective address  The output of AC is applied to the bus and the data input of memory is connected to the bus Example:  D3T4 : M[AR]←AC, SC←0
  • 9.  BUN:Branch Unconditionally  PC is incremented at time T1 to prepare it for the address of the next instruction in the program sequence  BUN transfers the program to the instruction specified by the effective address  Allows the programmer to specify an instruction out of sequence and we say that the program branches (jumps) unconditionally Example:  D4T4 : PC←AR SC←0 (resetting SC transfers control to T4 )
  • 10.  BSA:Branch and Save Return Address  Useful for branching to a portion of the program called a subroutine or procedure  When executed, it stores the address of the next instruction in sequence (which is available in PC) into a memory location specified by the effective address  (Effective address + 1) is then transferred to PC to serve as the address of the first instruction in the subroutine  The return to the original program is accomplished by the BUN instruction placed at the end of the subroutine Example:
  • 11.  ISZ:Increment and Skip if Zero  Increments the word specified by the effective address  If the incremented value is equal to 0, PC is incremented by 1  When a negative number(in 2's compelement) stored in memory word is repeatedy incremented by 1 it eventually reaches zero  At this time PC is incremented by one in order to skip the next instruction in the program  It is necessary to read the word into DR, increment DR and store the word back into memory since it is not possible to increment a word inside the memory Example:  D6T4 : DR←M[AR]  D6T5 : DR←DR+1  D6T6 : M[AR] ← DR, if (DR=0) then (PC←PC+1), SC←0