Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
  • SQL
  • Web Development
  • System Design
  • Aptitude
  • GfG Premium
Open In App
Next Article:
Difference between Implied addressing mode and Immediate addressing mode
Next article icon

Difference between Implied addressing mode and Immediate addressing mode

Last Updated : 11 Sep, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

In computer architecture the addressing modes play a vital role in defining how the operands of the instructions are to be retrieved. The two are addressing modes that are often employed are the Implied and Immediate addressing modes. Though both play major roles in instruction execution they work differently based on how operands are either specified or deduced. These differences are useful to know in order to write better code that will have a higher efficiency.

What is Implied Addressing Mode?

In implied addressing mode, the operands are specified implicitly in the definition of the instruction. All the instructions which reference registers that use an accumulator are implied mode instructions. Zero address instructions in a stack-organized computer are also implied mode instructions. Thus, it is also known as stack addressing mode. 

Advantages of Implied Addressing Mode

  • Advantages it in that it simplifies given instructions because the operand is not included.
  • Delivery of faster results because the execution of the instruction does not involve an extra memory reference to acquire the operand.

Disadvantages of Implied Addressing Mode

  • Relatively rigid as the operand cannot be changed other than in the physical sense by the programmer.
  • Appropriate only for particular codes to be executed where the operand is suggested by the operation.

What is Immediate Addressing Mode?

In Immediate addressing mode, the operand is specified in the instruction itself. In this mode, the operand field contains the actual operand to be used in conjunction with the operation specified in the instruction.

Advantages of Immediate Addressing Mode

  • Since operand is easily accessible from the instruction then it executes fast.
  • It helps to free the machine from the necessity of obtaining operands from the memory.

Disadvantages of Immediate Addressing Mode

  • Restricted to minute operand specifications since the operand must fit in instruction area.
  • Inapplicable to the operands performant for static data as the operand is encoded in the instruction.
S. No.Implied Addressing ModeImmediate Addressing Mode
1.In Implied addressing mode, no operand is specified in the instruction .In Immediate addressing mode, operand is specified in the instruction itself .
2.Basically, the operands are specified implicitly in the definition of instruction .Here, the operands are contained in an operand field rather than address field .
3.This type of mode can be used in all register reference instructions .This type of mode is quite useful for initializing the registers to a constant value .
4.It requires 8 bits or 16 bits long data and is the part of instruction.It requires more bits than the address.
5.There is no need to acquire a operand .It is fast in acquiring an operand .
6.Zero-address instructions in a stack-organized computer are implied-mode instructions .The address field of an instruction may specify either a memory word or a processor register.
7.Example: CMA (Complement Accumulator)Example: MVI A 45
Feature Implied Addressing Immediate Addressing
 
Addressing method Implicit: the operand's location is determined by the instruction opcode Explicit: the operand value is directly specified in the instruction
 
Operand size Typically 8-bit or 16-bit Typically 8-bit or 16-bit, but can also be 32-bit
Flexibility Less flexible: only works with predefined memory locations or registers Less flexible: only allows for immediate values as operands
Code size Requires less code: operand location is determined by the instruction opcode, which is shorter Requires more code: additional instructions are needed to load the immediate operand into a register
Execution speed Faster: operand location is determined directly from the instruction opcode Slower: additional instructions are needed to load the immediate operand into a register
Memory usage Does not use additional memory Uses additional memory to store immediate values
Complexity Less complex: requires fewer instructions and is generally easier to use and debug More complex: requires additional instructions and memory accesses, and can be more difficult to debug
 

Conclusion

Both Implied and Immediate addressing modes are used differently in computer architecture though they have their own benefits. Implied addressing is beneficial when the operand is known and while the speed of the instruction execution is of essence. On the other hand, Immediate addressing mode is most useful where the operand wants to be specified in the instruction but, though more versatile than the previous addressing modes discussed here, it has a restriction on the size of the operand. Depending on the circumstances programmers can then select the right mode depending with their ability and efficiency.


Next Article
Difference between Implied addressing mode and Immediate addressing mode

V

vasu_gupta
Improve
Article Tags :
  • Computer Organization & Architecture

Similar Reads

    Difference between Direct and Implied Addressing Modes
    Prerequisite - Addressing Modes 1. Direct Addressing Mode : In direct addressing mode, the address field contains the address of the operand. Effective Address(EA) = address field of operand Example - Add the contents of register A to the accumulator. ADD A Look in memory at address A for operand. O
    2 min read
    Difference between Indirect and Implied Addressing Modes
    Addressing modes are the techniques used by the CPU to identify where the data needed for an operation is stored. They provide rules for interpreting or modifying the address field in an instruction before accessing the operand.Indirect and implied addressing modes are two common techniques used to
    4 min read
    Difference between Direct and Indirect Addressing Modes
    In computer programming, addressing modes help the CPU find data in memory. Two common types are direct addressing and indirect addressing. Direct addressing gives the exact location of the data, making it quick and easy to access. Indirect addressing, on the other hand, uses a pointer to find the d
    6 min read
    Difference between Direct-mapping, Associative Mapping & Set-Associative Mapping
    Cache memory stores frequently accessed data for easy retrieval. When Read request is received from the CPU, the contents of block of memory words containing the location which is specified are transferred into the cache. The cache memory can store a number of blocks. The mapping technique is requir
    9 min read
    Difference between CALL and JUMP instructions
    In assembly language as well as in low level programming CALL and JUMP are the two major control transfer instructions. Both instructions enable a program to go to different other parts of the code but both are different. CALL is mostly used to direct calls to subroutine or a function and regresses
    5 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences