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
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Instruction Word Size in Microprocessor
Next article icon

Instruction Word Size in Microprocessor

Last Updated : 05 Apr, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

The 8085 instruction set is classified into 3 categories by considering the length of the instructions. In 8085, the length is measured in terms of "byte" rather than "word" because 8085 microprocessor has 8-bit data bus. Three types of instruction are: 1-byte instruction, 2-byte instruction, and 3-byte instruction. 

1. One-byte instructions - 
In 1-byte instruction, the opcode and the operand of an instruction are represented in one byte.

  • Example-1: Task- Copy the contents of accumulator in register B.
Mnemonic- MOV B, A Opcode- MOV Operand- B, A Hex Code- 47H Binary code- 0100 0111 
  • Example-2: Task- Add the contents of accumulator to the contents of register B.
 Mnemonic- ADD B Opcode- ADD Operand- B Hex Code- 80H Binary code- 1000 0000 
  • Example-3: Task- Invert (complement) each bit in the accumulator.
Mnemonic- CMA Opcode- CMA Operand-  NA Hex Code- 2FH Binary code- 0010 1111 

Note - The length of these instructions is 8-bit; each requires one memory location. The mnemonic is always followed by a letter (or two letters) representing the registers (such as A, B, C, D, E, H, L and SP). 

2. Two-byte instructions - 
Two-byte instruction is the type of instruction in which the first 8 bits indicates the opcode and the next 8 bits indicates the operand.

  • Example-1: Task- Load the hexadecimal data 32H in the accumulator.
Mnemonic- MVI A, 32H Opcode- MVI Operand- A, 32H Hex Code- 3E 32 Binary code- 0011 1110 0011 0010 
  • Example-2: Task- Load the hexadecimal data F2H in the register B.
Mnemonic- MVI B, F2H Opcode- MVI Operand- B, F2H Hex Code- 06 F2 Binary code- 0000 0110 1111 0010 

Note - This type of instructions need two bytes to store the binary codes. The mnemonic is always followed by 8-bit (byte) data. 

3. Three-byte instructions - 
Three-byte instruction is the type of instruction in which the first 8 bits indicates the opcode and the next two bytes specify the 16-bit address. The low-order address is represented in second byte and the high-order address is represented in the third byte.

  • Example-1: Task- Load contents of memory 2050H in the accumulator.
Mnemonic- LDA 2050H Opcode- LDA Operand- 2050H Hex Code- 3A 50 20 Binary code- 0011 1010 0101 0000 0010 0000 
  • Example-2: Task- Transfer the program sequence to the memory location 2050H.
Mnemonic- JMP 2085H Opcode- JMP Operand- 2085H Hex Code- C3 85 20 Binary code- 1100 0011 1000 0101 0010 0000 

 Features associated with different word sizes:

4-bit processors: These processors were used in the earliest digital computers and calculators. They can process 4 bits of data at a time, which limits their capabilities in terms of processing speed and memory capacity.

8-bit processors: These processors were popular in the 1970s and 1980s, and are still used in some low-power applications. They can process 8 bits of data at a time, which allows for more complex operations and better memory management.

16-bit processors: These processors were introduced in the 1980s and were used in many home computers and gaming consoles. They can process 16 bits of data at a time, which allows for more powerful operations and better graphics capabilities.

32-bit processors: These processors became popular in the 1990s and are still widely used today. They can process 32 bits of data at a time, which allows for even more powerful operations and better multitasking capabilities.

64-bit processors: These processors are used in high-end computers and servers. They can process 64 bits of data at a time, which allows for even more powerful operations and better memory management.

Note - These instructions would require three memory locations to store the binary codes. The mnemonic is always followed by 16-bit (or adr).


Next Article
Instruction Word Size in Microprocessor

S

sudiptadandapat
Improve
Article Tags :
  • Computer Organization and Architecture
  • microprocessor

Similar Reads

    Introduction of Microprocessor
    In this article we will go through the Microprocessor, we will first define what is a Microprocessor, then we will go through its different types with its block diagram and we will see different types of processors, At last, we will conclude our article with some applications and FAQs.What is Microp
    6 min read
    Timing diagram of MOV Instruction in Microprocessor
    Problem – Draw the timing diagram of the given instruction in 8085, MOV B, C Given instruction copy the contents of the source register into the destination register and the contents of the source register are not altered. Example: MOV B, C Opcode: MOV Operand: B and C Bis is the destination registe
    2 min read
    Evolution of Microprocessors
    Transistor was invented in 1948 (23 December 1947 in Bell lab). IC was invented in 1958 (Fair Child Semiconductors) By Texas Instruments J Kilby. The first microprocessor was invented by INTEL(INTegrated ELectronics). Size of the microprocessor - 4 bit NameYear of InventionClock speedNumber of trans
    5 min read
    Vector Instruction Format in Vector Processors
    INTRODUCTION: Vector instruction format is a type of instruction format used in vector processors, which are specialized types of microprocessors that are designed to perform vector operations efficiently. In a vector processor, a single instruction can operate on multiple data elements in parallel,
    7 min read
    Arithmetic instructions in 8086 microprocessor
    Arithmetic Instructions are the instructions which perform basic arithmetic operations such as addition, subtraction and a few more. Unlike in 8085 microprocessor, in 8086 microprocessor the destination operand need not be the accumulator. Following is the table showing the list of arithmetic instru
    2 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