Lec-4: Internal Architecture of 8085 Microprocessor | Working of 8085

Gate Smashers
9 Jun 202318:12

Summary

TLDRThe video script is an educational lecture on the workings of the 8085 microprocessor, including its internal structure and operation. The instructor uses a step-by-step approach to explain the processor's architecture, starting from the program counter to the execution of instructions. The lecture aims to demystify the complex diagrams associated with the 8085 by breaking them down into understandable segments, ensuring that viewers can grasp the fundamental concepts of microprocessors.

Takeaways

  • 😀 The video script is a tutorial discussing the working of the 8085 microprocessor, including its internal structure and how it performs operations.
  • 🔍 The presenter emphasizes the importance of understanding the 8085 microprocessor as it forms the basis for many modern processors, despite its complexity.
  • 💻 The tutorial explains the architecture of the 8085, including various types of registers such as general-purpose registers, special registers, and flag registers.
  • 🕒 The timing and control unit of the 8085 is highlighted, which manages the timing signals that dictate when and how operations are performed.
  • 🛠️ The script delves into the step-by-step process of how instructions are fetched, decoded, and executed within the 8085 microprocessor.
  • 🔢 The concept of the program counter is introduced, explaining its role in keeping track of the sequence of instructions being executed.
  • 📝 The tutorial covers the assembly language and how it is translated into machine-level instructions that the 8085 can understand and execute.
  • 🔧 The video script uses examples to illustrate the process of adding values using the 8085's accumulator and how results are stored in registers.
  • 📉 The function of the stack pointer is explained, including how it manages memory addresses for operations like 'push' and 'pop' within the stack.
  • 📚 The presenter provides a comprehensive overview of the 8085's architecture, making it accessible even for those new to the topic, with the promise of a follow-up video on flags and flag registers.

Q & A

  • What is the main topic of the video script?

    -The main topic of the video script is the explanation of the working and internal structure of the 8085 microprocessor.

  • Why is the 8085 microprocessor important in the context of the video?

    -The 8085 microprocessor is important because it is considered the starting point for many powerful microprocessors used today, and understanding its architecture and operation is fundamental to grasping more complex systems.

  • What does the acronym 'CPU' stand for as mentioned in the script?

    -In the script, 'CPU' stands for 'Central Processing Unit,' which is the primary component of a computer that performs most of the processing inside the computer.

  • What is the significance of the program counter in the 8085 microprocessor as discussed in the script?

    -The program counter in the 8085 microprocessor is significant as it holds the address of the next instruction to be executed, ensuring the sequential flow of the program.

  • How does the timing and control unit function in the 8085 microprocessor?

    -The timing and control unit in the 8085 microprocessor generates timing signals that dictate when and how operations are performed, managing the sequence of operations and coordinating various components of the processor.

  • What is the role of the accumulator in the 8085 microprocessor?

    -The accumulator in the 8085 microprocessor is a register used for storing operands and results of operations, often involved in arithmetic and logical operations.

  • What is the purpose of the stack in the context of the 8085 microprocessor?

    -The stack in the 8085 microprocessor is used for storing temporary data, managing function calls and returns, and preserving registers' values across function calls, following the Last In, First Out (LIFO) principle.

  • How does the script describe the process of executing an instruction in the 8085 microprocessor?

    -The script describes the process of executing an instruction in the 8085 microprocessor as a series of steps involving fetching the instruction from memory, decoding it, and then executing it, which includes operations like addition, subtraction, and data movement.

  • What is the function of the instruction register in the 8085 microprocessor?

    -The instruction register in the 8085 microprocessor temporarily holds the instruction fetched from memory, allowing the processor to decode and execute it.

  • How does the script explain the concept of registers in the 8085 microprocessor?

    -The script explains that registers in the 8085 microprocessor are specialized storage locations for different types of data and operations, including general-purpose registers, stack pointer, and flag registers.

  • What is the significance of the flag register in the 8085 microprocessor as hinted in the script?

    -The flag register in the 8085 microprocessor holds status flags that indicate the results of operations, such as whether the result is zero, positive, negative, or if an overflow has occurred, which are crucial for conditional branching and program flow control.

Outlines

00:00

💻 Introduction to the 8085 Microprocessor

The speaker begins by introducing the topic of the 8085 microprocessor, emphasizing the importance of understanding its internal structure and how it operates. They mention their own experience learning about the 8085 during their engineering studies and the complexity of the subject. The speaker highlights the evolution of microprocessors from the 8085 to modern powerful chips like i7 and i9, while stressing that the foundational concepts start with the 8085. They also discuss the challenges of explaining complex diagrams and the importance of step-by-step learning to truly grasp the concepts.

05:04

📚 Detailed Explanation of 8085 Microprocessor Architecture

In this section, the speaker delves into the architecture of the 8085 microprocessor, discussing various components such as registers, the arithmetic logic unit (ALU), and the timing and control unit. They explain the function of each component and how they interact with one another. The speaker also touches upon the concept of registers, differentiating between general-purpose registers and special registers like the flag register. They further elaborate on the process of executing instructions, starting from the program counter and moving through the stages of instruction fetching, decoding, and execution, using examples to clarify the process.

10:05

🔍 Deep Dive into Instruction Execution and Memory Management

The speaker continues with a deeper exploration of how instructions are executed within the 8085 microprocessor, focusing on the memory management aspect. They discuss the process of loading values into the accumulator from memory, the role of the stack pointer, and the concept of push and pop operations in the context of the stack. The explanation includes a step-by-step walkthrough of an instruction cycle, illustrating how values are moved between registers and memory. The speaker also introduces the concept of the stack and its organization, explaining how values are stored and retrieved in a last-in, first-out (LIFO) manner.

15:06

🚀 Concluding with Practical Application and Upcoming Topics

In the final part of the script, the speaker concludes the discussion on the 8085 microprocessor's operation and its practical applications. They summarize the key points covered in the video and hint at upcoming topics, such as the function of flags in the flag register, which are crucial for understanding the status of the processor after executing instructions. The speaker expresses gratitude for the viewers' attention and sets the stage for further exploration of microprocessor architecture in subsequent videos.

Mindmap

Keywords

💡Microprocessor

A microprocessor is a compact integrated circuit designed to perform the functions of a processor or central processing unit (CPU). It is the brain of modern electronic devices and computers. In the video, the microprocessor is central to the discussion, with the 8085 microprocessor being used as a specific example to illustrate its internal structure and how it operates. The script mentions how powerful microprocessors have evolved over time, starting from the 8085 to modern processors like i7 and i9.

💡Internal Structure

Internal structure refers to the design and layout of the components within a system, such as a microprocessor. The video script discusses the internal structure of the 8085 microprocessor, explaining the various registers and units like the timing and control unit, arithmetic logic unit, and the serial input/output system. Understanding the internal structure is crucial for comprehending how a microprocessor functions and processes instructions.

💡Registers

Registers are small, fast storage locations within a CPU that hold temporary data. They are used to store and manipulate data during processing. The script mentions different types of registers, including general-purpose registers and special registers like the flag register. Registers play a critical role in the operation of a microprocessor, as they hold the data that is being processed and the results of operations.

💡Timing and Control Unit

The timing and control unit is a component of a CPU that generates the timing signals needed to synchronize the operations of the processor. It manages when and how various operations are performed. In the context of the video, the timing and control unit is essential for coordinating the steps involved in executing instructions, ensuring that data is fetched, decoded, and executed in the correct sequence.

💡Arithmetic Logic Unit (ALU)

The ALU is the part of a CPU that performs arithmetic and logical operations. It is responsible for executing mathematical and boolean operations like addition, subtraction, multiplication, and logical AND/OR. The video script explains how the ALU operates within the 8085 microprocessor, emphasizing its role in performing the actual data processing tasks as directed by the instructions fetched from memory.

💡Instruction Set

An instruction set is the collection of operations that a CPU can perform. Each instruction in the set is a basic step that the processor can execute. The video script refers to the process of fetching and executing instructions from the instruction set, highlighting how each instruction is decoded and then executed by the microprocessor.

💡Program Counter

The program counter is a register that stores the memory address of the next instruction to be executed. It is fundamental to the operation of a CPU as it directs the flow of execution. The script explains how the program counter is used to fetch the next instruction from memory after the current instruction has been executed, thus controlling the sequence of operations.

💡Memory Address

A memory address is a reference to a specific location in memory where data or instructions are stored. The video script discusses how memory addresses are used to fetch instructions and data from memory. It also explains how the 16-bit address bus of the 8085 microprocessor allows it to access a large memory space, which is crucial for running complex programs.

💡Instruction Decoding

Instruction decoding is the process of interpreting the binary code of an instruction to determine what operation the CPU should perform. The video script mentions how the control unit decodes the instruction to understand what action needs to be taken, such as loading data into a register or performing an arithmetic operation.

💡Flag Register

The flag register is a special register that holds status flags, which indicate the results of operations performed by the ALU. These flags can indicate whether a result is zero, negative, or a carry has occurred during arithmetic operations. The video script refers to the flag register in the context of understanding the status of operations, which is important for conditional branching and other control flow mechanisms in a program.

💡Stack Pointer

The stack pointer is a register that holds the address of the top of the stack, a region of memory used for temporary storage of data. The video script discusses the stack pointer in the context of the 8085 microprocessor, explaining how it is used to manage the stack, which is important for function calls, returns, and maintaining the program's state during execution.

Highlights

Introduction to the 8085 microprocessor and its significance in the history of computing.

Explanation of the internal structure and working of the 8085 microprocessor.

The importance of understanding the 8085 for grasping the basics of microprocessors.

Overview of the different types of registers in the 8085 microprocessor.

Description of the General Purpose Registers and their functions.

Explanation of the role of the Timing and Control Unit in the 8085.

Details on how the Arithmetic and Logical Unit performs operations.

Discussion on the Serial Input and Output functions of the 8085.

The process of executing instructions step by step in the 8085.

How the Program Counter initiates the execution of a program.

The role of memory in fetching and storing instructions.

Explanation of the Address Bus and Data Bus in the context of the 8085.

The function of the Stack Pointer and its organization in memory.

How the 8085 microprocessor performs arithmetic operations like addition.

The concept of flags in the 8085 and their impact on program execution.

The process of decoding and executing instructions in the 8085.

How the 8085 manages the stack for function calls and returns.

The significance of understanding the 8085 for learning about modern microprocessors.

Transcripts

play00:00

स्टूडेंट वेलकम तू गेट मेजर्स आज की सिटी

play00:02

में लेकर आया हूं वर्किंग ऑफ 8085

play00:06

माइक्रोप्रोसेसर मतलब किस तरीके से ये कम

play00:09

करता है इंटरनल स्ट्रक्चर भी बोल सकते हो

play00:11

आप 8085 की और इसको एक्सप्लेन करने के लिए

play00:14

मैं विद एग्जांपल एक्सप्लेन करूंगा

play00:16

क्योंकि इसको अगर एग्जांपल के बिना करोगे

play00:18

ना तो समझ ही नहीं आएगा समझ क्या मैं अगर

play00:22

अपनी भी बात करूं अपना भी बताऊं तो मैंने

play00:24

जब अपने बीटेक के टाइम पे ये चीज पड़ी थी

play00:26

तो समझ तो दूर की बात है मतलब इसको देख के

play00:29

पहले तो बुक ही बैंड कर देते थे और आप भी

play00:31

वीडियो मत बैंड कर देना की सर ये कौन सा

play00:33

खतरनाक डायग्राम ले आए बट एक्चुअल में आज

play00:36

के टाइम पे या मोबाइल उसे कर रहे हो फोन

play00:38

उसे कर रहे हो एवं इस वीडियो को देखने के

play00:40

लिए भी जो लैपटॉप या फोन उसे कर रहे हो

play00:42

उसकी जो बैक बोन है वो क्या है माइक्रो

play00:45

प्रोसेसर तो आज के टाइम पे ठीक है हम लोग

play00:47

बहुत पावरफुल माइक्रोप्रोसेसर को उसे करें

play00:49

प्रोसेस को उसे करें i7 को i9 को ये

play00:52

जेनरेशन वो जेनरेशन एप्पल वाले में कहते

play00:54

हैं मेंबन चिप ए गई m2 चिप ए गई लेकिन इन

play00:57

सबका जो बेस है वो एक्चुअल में स्टार्टिंग

play01:00

करता हूं 8085 से ही है तो इसीलिए इसकी

play01:02

वर्किंग को समय ना बहुत जरूरी है तो

play01:04

डायग्राम दिखने में जरूर खतरनाक ग रहा है

play01:06

बट अगर आप इसको एक-एक करके जब स्टेप बाय

play01:09

स्टेप समझोगे ना तो आपको लगेगा यार ये था

play01:12

मतलब मैंने खुद अपने टाइम पे अगर सच बताओ

play01:14

ना तो इतना कम करने की कोशिश की है और ये

play01:17

तो क्रेन भी नहीं होता इसका रता भी नहीं

play01:19

होता क्यों क्योंकि कैसे कर लोग अगर आपने

play01:22

थोड़े बहुत नाम भी याद रख लिए तो आपको

play01:24

एरोनी याद रहेंगे की ये ऊपर की तरफ था

play01:26

नीचे था इधर को था ये बाहर को था ये चीज

play01:28

आप याद नहीं रख सकते तो फिर क्या होता है

play01:31

जी परचियम बनाने की कोशिश करते हैं तो

play01:32

भैया ये पर्ची ये फारे भी नहीं बना सकते

play01:35

इसको तो इतना गंदा डायग्राम है तो कहानी

play01:37

ना कहानी सबसे बेस्ट जो है वो क्या है

play01:39

बेस्ट कैसे क्या है इसका की इसको समझ ही

play01:42

लो तो मैं आपको बिल्कुल ऐसे बिल्कुल मजे

play01:44

से समझाऊंगा ना अच्छे एग्जांपल से आपको

play01:47

सारे प्वाइंट्स क्लियर हो जाएंगे तो देखो

play01:48

एक बार पहले इसको ओवरऑल आर्किटेक्चर में

play01:51

है क्या यहां पे सबसे पहले तो में आते है

play01:53

यहां पे रजिस्टेंस डिफरेंट टाइप्स ऑफ

play01:55

रजिस्टेंस हैं जिसके बड़े में ऑलरेडी मैं

play01:57

पढ़ा चुका हूं डिफरेंट टाइप्स ऑफ जी तरह

play01:59

जनरल परपज क्या होते हैं स्पेशल

play02:00

रेजिस्टेंस कौन-कौन से होते हैं जैसे

play02:02

टेंपरेरी है फ्लैग रेजिस्टेंस है एवं

play02:06

हमारे पास यहां पे जनरल परपज इस तरह जैसे

play02:09

बी सी दी आई हा ल इनके बड़े में ऑलरेडी

play02:12

आपको पढ़ा चुका हूं एक बार वो वीडियो जरूर

play02:13

चेक कर लेना क्यों क्योंकि यह सर एक

play02:16

वीडियो में आप नहीं समझ सकते इसके लिए

play02:18

पुरी सेट ऑफ सीरीज है सेट ऑफ वीडियो है तो

play02:20

अगर आप सीक्वेंस में करोगे तो आपको बहुत

play02:22

अच्छे समझ आएगा तो एक बार टाइप ऑफ रजिस्टर

play02:24

हमारी वीडियो देख लेना ऊपर आपको लिंक में

play02:26

जो है वो साड़ी इनफॉरमेशन ए रही होगी और

play02:28

यहां पे अगर बात करें तो ये रेजिस्टेंस ए

play02:31

गई ये हमारा ए जाता है टाइमिंग और कंट्रोल

play02:33

यूनिट टाइम अगेन और कंट्रोल यूनिट का फंडा

play02:35

क्या होता है ये सारे टाइम और कंट्रोल

play02:37

सिगनल्स जो है टाइमिंग सिगनल्स जेनरेट

play02:40

करता है और ये टाइमिंग सिगनल्स बताते हैं

play02:42

की किस टाइम पे क्या करना है ठीक है आलू

play02:45

मेरे को पता है की क्या करता है अर्थमैटिक

play02:46

लॉजिकल यूनिट अर्थमैटिक ऑपरेशनल लॉजिकल

play02:48

यूनिट को परफॉर्म करता है लेकिन किस चीज

play02:51

को कब करवाना है कब कहां पे लेक आना है कब

play02:53

कहां पे भेजना है वो सर टाइमिंग और

play02:55

कंट्रोल सिग्नल जो है वो मैनेज करता है

play02:57

फिर यहां पे इंटरप्ट से रिलेटेड जितने भी

play03:00

कमांड है जितनी भी स्ट्रक्चर है वो यहां

play03:01

पे एग्जीक्यूट होती है सीरियल इनपुट

play03:03

सीरियल आउटपुट वाला फंडा यहां पे होता है

play03:05

और अगर मैं बात करूं यहां पे इसमें सबसे

play03:08

में जो है वो कहानी जो है वो स्टार्ट होती

play03:11

है सबसे पहले प्रोग्राम काउंटर से तो ये

play03:14

पूरे डायग्राम को एक-एक करके देखेंगे

play03:16

स्टेप में स्टेप तो सबसे पहले फॉक्स आपको

play03:19

क्या करना है प्रोग्राम काउंटर पे जो

play03:21

कहानी का आप का सकते हो की सबसे पहले चीज

play03:24

क्या है जैसे कोई भी कहानी सुनते हैं तो

play03:26

एक बार की बात है ऐसी करते ना एक बार की

play03:29

बात है एक राजा था तो भैया यहां पे एक बार

play03:31

की बात है सबसे पहले क्या है एक प्रोग्राम

play03:33

काउंटर था और उसका साइज क्या है 16 ठीक है

play03:36

तो यहां से कहानी हम लोग स्टार्ट करते हैं

play03:38

लेकिन कहानी को स्टार्ट करने के लिए हमें

play03:40

कुछ कैरक्टर्स कुछ जो है वो लेने पढ़ते

play03:42

हैं एक डायरेक्टर्स तो वो मैं यहां पे

play03:44

क्या लेक चला हूं एक एग्जांपल के तोर पे

play03:46

ठीक है तो यहां पे एग्जांपल क्या कहता है

play03:48

मेरे पास ईट ए बी सी ए = 10 बी इस इक्वल

play03:52

तू 20 सी = ए + बी सिंपली हमने दोनों को

play03:54

एड किया है ठीक है अब यहां पे ये तो हाय

play03:57

लेवल लैंग्वेज है इसको क्या करना पड़ता है

play03:59

मुझे असेंबली लेवल लैंग्वेज में लो लेवल

play04:00

में कन्वर्ट करना पड़ता है तो फैमिली में

play04:02

क्या कर सकते हो मूव हमने क्या की ए की

play04:05

वैल्यू जो हमारे पास यहां पे क्या थी एक

play04:07

की वैल्यू 10 वो 10 वैल्यू हमने मूव कर दी

play04:09

एकम्यूलेटर में बाई डिफॉल्टर जब भी हम कोई

play04:12

भी ऑपरेशन परफॉर्म करते हैं तो 8 0 85 में

play04:15

अगर आप दो वालुज को सम कर रहे हो और

play04:18

सब्सट्रैक्ट कर रहे हो मल्टीप्लाई कुछ भी

play04:19

कर रहे हो उसमें से एक वैल्यू कम से कम

play04:22

आपकी एकम्युलेटर में जाएगी ही जाएगी दूसरी

play04:25

वैल्यू आप किसी भी जनरल परपज में दाल दो

play04:28

बी में दाल दो सी भी दाल दो कहानी पे भी

play04:30

लेकिन एक वैल्यू तो के लेटर में जाएगी ही

play04:33

जाएगी वो उसका उसे होगा ही होगा और वो आप

play04:36

इस डायग्राम से समझ सकते हो की इस आलू ने

play04:39

जब प्लस करना है तो इसके पास दो वैल्यू

play04:42

कहां से आई एक वैल्यू देख लो कम्युलेटर से

play04:45

आएगी मतलब एक तो कुल से आएगी दूसरी आपके

play04:48

बी में स्टोन कर दो सी में कर दो दे हा ल

play04:51

कहानी भी स्टोर कर दो वहां से घूम के आपकी

play04:53

टेंपरेरी में ए जाएगी और टेंपरा सेलू में

play04:56

चली याद रखना पहले इंपॉर्टेंट पॉइंट है एक

play04:59

वैल्यू में आएगी ही आएगी चलिए यहां पर

play05:03

हमारे पास इंस्ट्रक्शन नंबर वन इसको नाम

play05:05

दे देते हैं यही इंस्ट्रक्शन नंबर तू है

play05:07

ये इंस्ट्रक्शन नंबर थ्री है सिंपली एड कर

play05:09

दिया एड बी का मतलब क्या अब इसको इंटरनल

play05:11

ही समझ ही सकते हो इसका मतलब क्या है हमने

play05:13

एड कर दिया एक्यूमोलेटर में एकम्युलेटर के

play05:17

अंदर जो है वो बी की वैल्यू को एड कर दिया

play05:18

क्योंकि एकम्युलेटर में ऑलरेडी एक ही

play05:20

वैल्यू ए चुकी है 10 बी की वैल्यू जो है

play05:22

मतलब यहां पे जो है 20 वैल्यू है वो हमने

play05:24

रजिस्टर में दाल देनी है दोनों को एड करके

play05:26

इस तरीके से फंडा जो है वो क्लियर हो जाता

play05:28

है यहां पे ये लेट पोस्ट ये मेमोरी में

play05:30

मेरे पास मेमोरी आपको पता है की यहां पे

play05:33

मेरे पास जो है वो एड्रेस बस 16 बीट की

play05:35

होती है तो लेट पोस्ट मैं यहां पे एक

play05:37

एड्रेस ले लेट हूं 1000 ये 100001 और ये

play05:39

1000 दो ठीक है कुछ इस तरीके से हम मेमोरी

play05:42

लोकेशन से ले लो अब ये देखो आपको यहां पे

play05:44

मैं एक छोटा सा डायग्राम पहले माइक्रो

play05:46

प्रोसेसर का बना के दिखता हूं फिर हम इस

play05:48

पे आएंगे ये जो हमारा माइक्रो प्रोसेसर है

play05:50

इसमें सबसे पहले चीज क्या है आपकी

play05:52

प्रोग्राम काउंटर तो प्रोग्राम काउंटर में

play05:55

साइड फोल्ड पहले इंस्ट्रक्शन का एड्रेस है

play05:58

पहले इंस्ट्रक्शन कौन सी है आपकी ₹1000

play06:00

पड़ी है i1 तो पहले जो इंस्ट्रक्शन है

play06:03

उसका एड्रेस कहां पे वो पड़ी है 1000 वो

play06:06

कहां पे है प्रोग्राम काउंटर में लोडेड है

play06:09

ठीक है तो यहां से कहानी जो है वो आपकी

play06:11

स्टार्ट होती है तो सबसे पहले स्टेप क्या

play06:13

है प्रोग्राम काउंटर में जो भी एड्रेस है

play06:16

प्रोग्राम काउंटर में जो भी एड्रेस है वो

play06:19

आप ये लोड कैसे हुआ 1000 इसके अंदर आया

play06:21

कैसे ऑपरेटिंग सिस्टम भी तो कोई चीज है

play06:24

ऑपरेटिंग सिस्टम साड़ी चीजों को बैक हैंड

play06:25

पे मैनेज करता है तो उसने पहले क्षेत्र का

play06:28

एड्रेस यहां पे लोड कर रखा है अब यहां पे

play06:29

क्या होगा यहां पे क्या आया आपकी एड्रेस

play06:32

बस सबसे पहले चीज क्या है प्रोग्राम

play06:34

काउंटर में जो एड्रेस है मुझे एड्रेस पता

play06:35

ग गया की मुझे फालना गली में जाना है उसे

play06:38

हाउस नंबर में जाना है तो भैया अब मैं

play06:40

जाना स्टार्ट करता हूं तो यहां से सबसे

play06:42

पहले चीज क्या है आपकी एड्रेस बस जो है वो

play06:45

आई है एड्रेस बस में यहां पर ये एड्रेस

play06:47

क्योंकि एड्रेस बस क्या है 16 बीट की है

play06:50

तो 16 बीट का ये एड्रेस जो है वो जेनरेट

play06:52

होगा और आप उसे पर्टिकुलर एड्रेस पे जाओगे

play06:55

पहले उसे एड्रेस पे जाओगे ना फिर क्षेत्र

play06:57

आएगी तो पहले स्टेप क्या है आप उसे एड्रेस

play07:00

पे गए तो लो जी यहां से भी आप देख सकते हो

play07:02

प्रोग्राम में जो भी एड्रेस है 16 बीट का

play07:04

क्योंकि ये आपकी जो वैल्यू है यहां पे आप

play07:07

का सकते हो की जो एड्रेस बस है वो 16 बीट

play07:09

की है तो इधर आपके एक मेमोरी है तो यहां

play07:11

से 16 बीट में जो भी एड्रेस लिखा हुआ है

play07:13

वो यहां पे आया उसको दो पार्ट्स में

play07:15

डिवाइड किया आठ जो है वो क्या है एड्रेस

play07:18

की बेटा और आठ जो है वो क्या है एड्रेस और

play07:21

डाटा दोनों के लिए उसे की जाति है मैंने

play07:22

आपको 40 पी आर्किटेक्चर में भी बताया था

play07:25

की हमारा जो अली यहां पे एड्रेस लॉक इनेबल

play07:28

ए अली क्या हो गया ये रहा एड्रेस लाश

play07:30

इनेबल जब इसकी वैल्यू वन होती है क्योंकि

play07:32

यहां पे मैक्सिमम उसे करते हैं हम जो है

play07:34

वो एक्चुअल में क्या किया है हमने एड्रेस

play07:37

और डेटाबेस की दोनों को जो है इकट्ठा उसे

play07:39

कर लिया तो यहां पे एक्चुअल में क्या आया

play07:41

हमारी जो 16 पी है जो 16 बीट का जो एड्रेस

play07:44

है वो यहां पे आएगा आठ ये रहा आठ ये रहा

play07:47

ठीक है तो आप का सकते हो की एक तरह से ए

play07:50

दी 0 से लेकर ए दी 7 और यहां पे a8 से लेक

play07:54

15 तो ये 16 बीट का एड्रेस जो है वह इस

play07:57

तरीके से आया और ये एड्रेस एक तरह से

play07:59

मेमोरी में गया आप अब कहां जा रहे हो

play08:01

मेमोरी में गए लो जी मेमोरी में पहुंच गए

play08:03

1000 एड्रेस पर पहुंच गए यहां पे जो

play08:05

इंस्ट्रक्शन है अब क्या होगा इसको रीड करो

play08:08

तो यहां पे टाइमिंग और कंट्रोल यूनिट जो

play08:11

है वो क्या ओके करेगा वो एक तरह से क्या

play08:13

टाइमिंग है ये सिग्नल जेनरेट करता है

play08:15

सिग्नल जैसे हमारा दिमाग जेनरेट करता है

play08:17

ना सिग्नल की यार अब ये करो जैसे मैंने

play08:19

यहां से चलकर यहां तक जाना है ठीक है मेरे

play08:22

पर में मेरे को लेक जा रही है यहां से

play08:23

यहां वापस लेक ए रहे हैं यहां से लेकिन

play08:26

यार ये सारे जो सिग्नल कौन जेनरेट कर रहा

play08:28

है वही चीज यहां पे जो दिमाग वाला कम है

play08:31

वो यही पे टाइमिंग और कंट्रोल कर रहा है

play08:33

तो उसने क्या बोला तुरंत की रीड करो रीड

play08:35

जो है वो इनेबल हो गया तो रीड हमने किया

play08:37

क्या इंस्ट्रक्शन को रीड किया तो i1 को

play08:40

रीड किया अब जब इंस्ट्रक्शन को रीड किया

play08:43

तो रीड करके हम एड्रेस पे तो पहुंच गए

play08:45

इंस्ट्रक्शन को रीड करेंगे अब नेक्स्ट

play08:48

क्या ए गई आपकी डाटा बस

play08:51

अब यह जो इंस्ट्रक्शन है वह एड्रेस बस में

play08:54

नहीं आएगी एड्रेस का कम था सिर्फ एड्रेस

play08:55

तक पहुंचाना अब वहां उसे एड्रेस पे जा के

play08:58

बंदे को उठाना है उसे इंस्ट्रक्शन को

play09:00

उठाना है तो इस इंस्ट्रक्शन को रीड करने

play09:02

के लिए अब जो है वो डाटा बस उसको डेटाबेस

play09:05

में बिठाऊ और डाटा बस में उसको लेक आओ तो

play09:07

8 बीट की हमारी डाटा बस होती है अब ये

play09:10

देखो यही चीज है आपकी ये वाली जो बीता है

play09:13

इसमें से जो आठ है वो आपकी एड्रेस पे भी

play09:15

उसे होती है और डाटा पे भी उसे होती है अब

play09:17

अर्ली की वैल्यू जो है जो आपका ए अली उसकी

play09:19

वैल्यू क्या हो जाएगी जीरो और जीरो हो गई

play09:21

तो अब ये है जो ये जो ये वाली जो आपकी फेस

play09:25

है ये एक्चुअल में डेटाबेस की तरह उसे हो

play09:26

रही है तो अब आप का सकते हो की डाटा बस

play09:29

में ये वाली स्ट्रक्चर जो है वो ट्रैवल

play09:31

करके आएगी तो आई ये इस क्षेत्र को वेलकम

play09:34

करो जी जब वेलकम किया तो वेलकम करके वो ए

play09:37

गई अंदर आके क्या करेगी अंदर आके कहां

play09:40

जाएगी अंदर आके वो जाएगी इंस्ट्रक्शन

play09:43

रजिस्टर के अंदर तो इंस्ट्रक्शन रजिस्टर्ड

play09:46

स्पेशलिस्ट है जिसका परपज क्या है वेलकम

play09:48

करना जो मेमोरी से इंस्ट्रक्शन ए रही है

play09:50

उसका वेलकम करो की आप और मेरे यहां पर आकर

play09:54

बैठ जा इंस्ट्रक्शन रजिस्टर में आके वो

play09:56

इंस्ट्रक्शन आके बैठ गई इसको बोलते हैं

play09:58

फेच इंस्ट्रक्शन फैज सुना है ना

play10:00

पाइपलाइनिंग में सुनते इंस्ट्रक्शन फेस

play10:02

इंस्ट्रक्शन डेकोर एग्जीक्यूट राइट बैक तो

play10:04

वो पहले स्टेप हो गया आपका इंस्ट्रक्शन

play10:06

फैज अब जैसे ही इंस्ट्रक्शन सेट हो गई

play10:09

सक्सेसफुली i1 यहां पे आके बैठ गई तो

play10:12

तुरंत क्या कर देना दो चीज होगी एक तो इस

play10:15

इंस्ट्रक्शन को करो डिकोड एक तो करो

play10:18

इंस्ट्रक्शन को डेकोर अरे भैया

play10:20

इंस्ट्रक्शन ए गई की मुझे ये करना है पर

play10:22

पता कैसे लगेगा क्या करना है मुझे एड करना

play10:25

है मल्टीप्लाई करना सब्सट्रैक्ट करने क्या

play10:26

करना है तो उसे चीज को जो है वो एक तरह से

play10:29

डिकोड करना पड़ता है उसको ओपन करना पड़ता

play10:31

है वो एक्चुअल में इस क्षेत्र डेकोर करता

play10:33

है ठीक है तो साथ ही साथ ये इंस्ट्रक्शन

play10:35

को रिकॉर्ड करने के लिए लगा दिया और

play10:37

प्रोग्राम काउंटर की वैल्यू 1 इंक्रीमेंट

play10:40

हो गई क्यों क्योंकि प्रोग्राम काउंटर जो

play10:42

है वो रुक नहीं रहेगा वो बोलेगा ठीक है तो

play10:44

इसको एग्जीक्यूट कर इतने में मैं तेरे को

play10:46

नेक्स्ट इंस्ट्रक्शन का एड्रेस दे दूंगा

play10:48

तो नेक्स्ट इंस्ट्रक्शन का एड्रेस एक तरह

play10:50

से प्रोग्राम काउंटर अब इसको दिनो कर रहा

play10:52

है तो यहां पे हमारे पास क्या है ये जो

play10:55

इंक्रीमेंट और डिक्रिमेंट है इसलिए क्या

play10:57

कर दिया इंक्रीमेंट कर दिया प्रोग्राम

play10:58

काउंटर की वैल्यू को ठीक है तो यहां पे दो

play11:00

चीज होगी प्रोग्राम काउंटर की वैल्यू

play11:02

इंक्रीमेंट भी होगी और यहां पे

play11:03

इंस्ट्रक्शन को जो पहले वाली थी i1 वाली

play11:05

वो डिकोड हनी स्टार्ट हो गई अब उसको डिकोड

play11:08

किया एक तरह से ये इंस्ट्रक्शन है वैसे तो

play11:10

ये जीरो वन जीरो वन की फॉर्म में होगी

play11:12

क्योंकि लोन लेवल लैंग्वेज से जीरो वन

play11:13

नहीं है कंप्यूटर तो जीरो वन समझना है बट

play11:15

आपको मैंने इस तरीके से लिख दी ताकि आपको

play11:17

समझ ए जाए की इसमें क्या

play11:19

कर रहे हैं एकम्युलेटर में ये वैल्यू ठीक

play11:21

है अब ये इस क्षेत्र को डिकोड किया डिकोड

play11:24

करके कंप्यूटर को पता ग गया

play11:25

माइक्रोप्रोसेसर पता ग गया की भैया 10

play11:28

वैल्यू को लोड करो एकम्युलेटर के अंदर तो

play11:31

क्यों वो लेटर के अंदर जो है वो 10 वैल्यू

play11:33

को लोड किया जाएगा तो यहां पे एक तरह से

play11:35

आप का सकते हो की जब ये डिकोड हो गई डिकोड

play11:38

हो के टाइमिंग और कंट्रोल सिग्नल को पता ग

play11:40

गया की अब क्या करना है उसने फिर जो है वो

play11:42

टाइमिंग और कंट्रोल सिगनल्स को जेनरेट

play11:44

किया और क्या रहेगा की 10 वैल्यू को नोट

play11:47

करो किसके अंदर एकम्युलेटर के अंदर तो है

play11:50

क्यों वो लेटर के अंदर आप का सकते हो की

play11:52

जो 10 वैल्यू है वो क्या होगी आपकी लोड हो

play11:54

गई ठीक है तो यहां से आपकी इंस्ट्रक्शन

play11:56

यहां से एड्रेस गया था आपकी जो है वो

play11:59

स्ट्रक्चर आई इंस्ट्रक्शन ए के यहां से

play12:01

घूम के इंस्ट्रक्शन जिसमें बैठ गए रिकॉर्ड

play12:04

हो गई टाइमिंग कंट्रोल को पता ग गया की

play12:06

भैया ये करना है तो उसने क्या किया 10

play12:07

वैल्यू जो है वो एकम्युलेटर में लोड कर दी

play12:09

10 वैल्यू लेटर में नोट कर दी अब क्या हो

play12:12

गया एक ही स्ट्रक्चर आपकी एग्जीक्यूट हो

play12:13

गई

play12:14

अब दूसरा मूव करना है मतलब दोबारा

play12:19

एक पे है नेक्स्ट चाहिए फिर एड्रेस गया 11

play12:22

पे गए वहां से डाटा बस के थ्रू हमने कल की

play12:25

इंस्ट्रक्शन को कल की फिर इंस्पेक्शन

play12:27

सिस्टम में आई उसको रिकॉर्ड की आप पता ग

play12:29

गया की भैया क्या करना है मूव बी मतलब आप

play12:32

बी रजिस्टर में क्या दाल दो 20 वैल्यू दाल

play12:36

दो तो 20 वैल्यू जो है वो हमारी क्योंकि

play12:37

हम हेक्साडेसिमल में उसको रिप्रेजेंट कर

play12:39

रहे हैं तो वो आपकी दाल दो किसके अंदर बी

play12:42

के अंदर चलो जी फिर हमारी वहां से मेमोरी

play12:44

से इंस्ट्रक्शन आई उसको यहां पे हमने

play12:46

रजिस्टर में डाला फिर उसको रिकॉर्ड के

play12:48

टाइमिंग कंट्रोल में अब क्या करना है की

play12:49

भैया डालो अभी बी के अंदर इस बी वाले

play12:51

रजिस्टर में क्या दाल दो 20 वैल्यू दाल दो

play12:54

ठीक है तो ये 20 वैल्यू एक तरह से यहां ए

play12:56

गई मतलब हेक्साडेसिमल में आप लिख सकते हो

play12:58

इसको जैसे 14h लिखा हुआ है और यहां पे

play13:01

हमारे पास टाइम ए गई तो इन दोनों को क्या

play13:03

करना है नेक्स्ट रिस्ट्रिक्शन क्या है फिर

play13:05

प्रोग्राम काउंटर इंक्रीमेंट हो जाता है

play13:06

प्रोग्राम काउंटर आपका फेच होने के बाद ही

play13:09

हो जाता है एग्जीक्यूट होने के बाद में

play13:11

फैट होने के बाद इंक्रीमेंट हो जाता है

play13:13

फिर वो क्या करेगा करेगा तो एड करने के

play13:16

लिए भाई एकम्युलेटर से आपकी क्या वैल्यू

play13:17

होगी एक तरह से 10 और जो यहां पर भी

play13:20

रजिस्टर है इसमें वैल्यू जो है वो क्या थी

play13:22

20 तो वो यहां से टेंपरेरी जिसमें एक बार

play13:24

के लिए टेंपरेरी स्टोर कर दी परमानेंटली

play13:27

नाम ही टेंपरेरी है तो यहां पे वैल्यू

play13:29

क्या ए गई 20 लो जी एकम्युलेटर में वैल्यू

play13:32

दे दी हमने एकम्युलेटर आप ओ सॉरी आलू में

play13:35

वैल्यू दे दी अली आलू का पता ही है आपके

play13:37

ऑर्थोमेंटोलॉजी के लिए दोनों को क्या कर

play13:39

देगा एड कर देगा एड करके क्या गया रिजल्ट

play13:41

तो जो रिजल्ट आया अब उसे रिजल्ट का क्या

play13:44

करना है उसे रिजल्ट को लेट अगर मुझे कब

play13:46

लेटर में भी डालना है अभी तो कैबिनेट में

play13:48

डालना लो जी कुबूल लेटर में एक बार स्टोर

play13:50

कर दिया अब यहां से मुझे निकाल के मेमोरी

play13:52

को देना है तो आप मेमोरी को दिवा सकते हो

play13:54

यहां से उठा के अगर आपको लेट पोस्ट आपको

play13:57

डिवाइस को देना है आप उसको राइट करवा सकते

play13:58

हो तो यहां पे ये एक सिंपल सा का सकते हो

play14:01

की सीक्वेंस ऑफ स्टेप्स जो है वो परफॉर्म

play14:04

करता है तो यहां पे मैक्सिमम चीज जो है वो

play14:06

आपको समझ ए गए होंगे की किस तरीके से

play14:08

हमारी वर्किंग जो है वो चल रही है

play14:11

इसके बाद हमारे पास एक ए जाता है यहां पे

play14:13

स्टॉक पेंटर का फंडा स्टैक पेंटर का

play14:16

बेसिकली फंदा क्या होता है इसके अंदर होता

play14:17

है टॉप ऑफ डी स्टॉक का एड्रेस जल्दी हमारे

play14:20

पास टैग है आपको पता है स्ट्राइक के बड़े

play14:23

में आपने पढ़ा हुआ है लास्ट टाइम फर्स्ट

play14:25

टर्म ठीक है लास्ट इन फर्स्ट आउट तो स्टॉक

play14:29

आपको पता है की कैसे क करता है जैसे पर

play14:31

एग्जांपल ये मेरा एड्रेस नंबर है ₹105 ये

play14:34

एड्रेस नंबर है एक हजार कर ये एड्रेस नंबर

play14:36

है 103 ये एड्रेस नंबर है 102 या एड्रेस

play14:38

नंबर है 1000 लेट फोन आपका जो टॉप ऑफ डी

play14:41

स्टॉक है फिलहाल जो है वो आपका टॉप ऑफ डी

play14:44

स्टैग जो है वो यहां पे पड़ा ठीक है अब

play14:47

लेट पोस्ट मुझे वही चीज करनी है ए + बी

play14:49

अगर मुझे परफॉर्म करना है तो जल्दी जो

play14:52

आपकी स्टॉक ऑर्गेनाइजेशन है वो जीरो

play14:55

एड्रेस स्ट्रक्चर के लिए उसे की जाति है

play14:56

जीरो एड्स मतलब जहां पे हम कोई भी एड्रेस

play14:58

बगैर मेंशन करते हैं हम वहां पे सिंपली

play15:00

लिखने हैं स्ट्रक्शन क्या पुश पुश करते

play15:03

हैं ठीक है तो इसका मतलब क्या है उसका

play15:05

मतलब क्या है जैसे ही इंस्ट्रक्शन

play15:07

प्रोग्राम काउंटर में मेमोरी क्षेत्र को

play15:09

उठाया डिकोड किया सपोर्ट करते क्या मतलब

play15:13

क्या है एक तरह से आप स्टैक पेंटर मतलब

play15:15

टॉप ऑफ डी स्टॉक में पुश कर दो लेट ये

play15:18

वैल्यू है 10 ये वैल्यू है 20 तो एक तरह

play15:20

से 10 वैल्यू जो है वो टॉप ऑफ डी सेट अब

play15:22

ये टॉप ऑफ डी स्टॉक का एड्रेस कहां है ये

play15:25

105 कहां है वो एड्रेस आपका कहां है स्टॉक

play15:29

पॉइंट के अंदर तो स्टॉक पेंटर से एड्रेस

play15:30

उठाया हम उसे ये कहां पे है ये स्टॉक एक

play15:34

तरह से कहां पे है तो ये मेमोरी के अंदर

play15:36

ही ये ऑर्गेनाइज्ड डाटा स्ट्रक्चर होता है

play15:39

मेमोरी के अंदर आपका प्रोग्राम भी होते

play15:41

हैं सेट ऑफ इंस्ट्रक्शन भी होती है डाटा

play15:43

भी होता है और आपका स्टॉक जो ऑर्गेनाइजेशन

play15:45

है वो भी वही पे होता है तो मेमोरी में गए

play15:47

वहां पे टॉप ऑफ डी स्टैग में हमने क्या कर

play15:49

दिया 10 वैल्यू एक तरह से पुश कर दी ठीक

play15:51

है फिर उसके बाद क्या होगा ये टॉप ऑफ डी

play15:53

स्टॉक डिक्रीमेंट हो गया तो डिक्रीमेंट हो

play15:56

के यहां पे चला गया ये देख लो जी ये आपका

play15:58

डिक्रीमेंट इस कैसे में उसे होता है तो

play16:00

डिक्रिमेंट हुआ वो टॉप 10 अब नेक्स्ट

play16:02

इंस्ट्रक्शन फिर उठाई नेक्स्ट इंस्ट्रक्शन

play16:04

में क्या लिखा था प्रोग्राम काउंटर में

play16:06

वही सही नेक्स्ट इंस्ट्रक्शन उठाई

play16:08

मेमोरियल एड्रेस पे गया जी जहां पे भी

play16:10

सारे स्ट्रक्चर डी है जैसे पहले किया था

play16:12

हमने इंस्ट्रक्शन को उठाया रिकॉर्ड किया

play16:14

उसमें क्या लिखा था तो यहां पे फिर क्या

play16:16

लिख दिया

play16:18

फिर क्या लिखा था वहां पे पुश तो इसका

play16:21

मतलब क्या है टॉप ऑफ डी स्टॉक में नेक्स्ट

play16:22

वैल्यू बी की पुश कर दो तो आप टॉप ऑफ डी

play16:25

स्ट्रीट ये रहा इसका एड्रेस कहां से

play16:26

मिलेगा फिर वही स्ट्राइक पेंटर से यहां पे

play16:28

क्या कर दिया पुश कर दिया 20 ठीक है उसके

play16:31

बाद क्या लिखा था यहां पे फिर हम

play16:33

प्रोग्राम काउंटर में जो नेक्स्ट एड्रेस

play16:35

जो है वो इसका था हमने इस क्षेत्र को कल

play16:37

किया से वही फंडा इस क्षेत्र जिसके अंदर

play16:40

ये इंस्ट्रक्शन आई उसको रिकॉर्ड किया तब

play16:42

पता लगा पाव अब पॉप का मतलब क्या होता है

play16:44

की जो आपकी लास्ट दो वालुज हैं क्योंकि

play16:47

स्टॉक में क्या होता है आप इस तरीके से

play16:49

एक-एक करके भारते हो और लास्ट में जो आपने

play16:51

डाली वही आप बाहर निकलोगे और लेट अगर आप

play16:54

एड कर रहे हो तो आपको पता है एड इसे

play16:56

बाइनरी तो लास्ट में आपने जो दो डाली वो

play16:59

निकाल लो तो लास्ट में जो दो डाली है वो

play17:01

निकाल लो तो पॉप क्या करेगा एक तरह से

play17:03

आपका इंक्रीमेंट कर देगा तो जैसे ही हमने

play17:05

ये 20 डाला तो टॉप 10 स्ट्रेट यहां पे अब

play17:07

उसके बाद इसको दो इंक्रीमेंट किया तो दो

play17:10

इंक्रीमेंट करके एक तरह से 20 को बार

play17:12

निकाल लिया 10 को बाहर निकाल लिया और इसको

play17:14

क्या कर दिया 30 करके दोबारा फिर पुश कर

play17:17

दी तो ये आप चाहे जीरो

play17:19

इंस्ट्रक्शन कर लो जैसे भी आप इसको उसे

play17:23

करना चाहते हो आप इस तरीके से इसको उसे कर

play17:25

सकते हो तो ये सर जो है वो बेसिक वर्किंग

play17:28

आपको पता ग गई की किस तरीके से जो है वो

play17:31

माइक्रोप्रोसेसर आपका क करता है नेक्स्ट

play17:34

वीडियो में हम लोग समझेंगे फ्लैग वाला जो

play17:37

ये फ्लैग क्योंकि आपको मैक्सिमम

play17:38

रेजिस्टेंस के बड़े में पता ग गया लेकिन

play17:41

जो आपको क्योंकि मैंने लास्ट वीडियो में

play17:43

भी आपको फ्लैगपाॅइंट सॉरी सारे प्वाइंट्स

play17:45

के सारे जो रेजिस्टेंस के बड़े में आपको

play17:47

पढ़ा दिया लेकिन अब आपको वर्किंग भी पढ़ा

play17:49

दी अब हम नेक्स्ट वीडियो में पढ़ेंगे

play17:51

फ्लैग फ्लैग रजिस्टर का बेसिकली फंदा क्या

play17:54

होता है जो हमारा स्टेटस है रिजल्ट का की

play17:57

करी है या नहीं परिर्टी है या नहीं

play17:59

ऑग्ज़ीलियरी करी है या नहीं वैल्यू जीरो

play18:02

आई है ना ये सन क्या है प्लस में आंसर आया

play18:04

माइंस में वो साड़ी चीज जो है वो फ्लैग के

play18:07

अंदर स्टोर होती है तो ये हम नेक्स्ट

play18:08

वीडियो में पढ़ेंगे तो इस वीडियो में इतना

play18:10

थैंक यू

Rate This

5.0 / 5 (0 votes)

相关标签
Microprocessor8085 ArchitectureInstruction SetComputer EngineeringTech EducationElectronics BasicsCPU FunctionsAssembly LanguageTech TutorialMicroprocessor Design
您是否需要英文摘要?