Lec-5: Types of Registers in 8085 | Accumulator | General Purpose Register

Gate Smashers
8 Jun 202314:12

Summary

TLDRThis video script is an educational tutorial focusing on the 8085 microprocessor, specifically explaining the types of registers within it. The presenter covers general-purpose registers like B, C, D, E, H, and L, and their roles in data storage and arithmetic operations. Special registers such as the accumulator, flag register, instruction register, program counter, and stack pointer are also discussed, detailing their functions and importance in the microprocessor's architecture. The script includes real-life examples to illustrate register usage, aiming to clarify the concepts for viewers who may have missed previous videos in the series.

Takeaways

  • 😀 The video explains the types of registers in the 8085 microprocessor, following a previous video on the 40-pin architecture.
  • 📚 It's essential to understand each unit of the 40-pin architecture before diving into the register types.
  • 💾 Registers are storage units and among the fastest storage units in a microprocessor, different from memory which can store larger amounts of data.
  • 🔑 The registers are categorized into General Purpose Registers and Special Registers, with General Purpose Registers used for storing data during operations.
  • 🧩 In the 8085, there are six General Purpose Registers named B, C, D, E, H, and L, each capable of storing 8 bits of data.
  • 🔄 The concept of pairing registers like B with C, D with E, and H with L is introduced, allowing the storage of 16-bit data.
  • 🔍 Special Registers include the Accumulator, which is an 8-bit register where operations like addition and multiplication are performed.
  • 📈 The Flag Register is explained as a status indicator for results, showing whether the result is positive, negative, or zero.
  • 💼 The Instruction Register is where instructions are temporarily stored before being decoded and executed.
  • 🔄 The Program Counter is highlighted as crucial for holding the address of the next instruction to be executed.
  • 📊 The Stack Pointer is discussed in the context of managing memory for functions and procedures, including push and pop operations.
  • 🔧 Temporary Registers are used for storing intermediate results, and the video script distinguishes between user-accessible and internal registers.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is an explanation of the types of registers in the 8085 microprocessor.

  • What was explained in the previous video mentioned in the script?

    -In the previous video, the 40-pin architecture was explained, including the significance and role of each pin.

  • What are the two categories of registers discussed in the video?

    -The two categories of registers discussed are General Purpose Registers and Special Registers.

  • What is the primary function of registers in a microprocessor?

    -Registers serve as the fastest storage units within a microprocessor, holding data that is frequently used in operations.

  • How much data can the registers in the 8085 microprocessor typically store?

    -The registers in the 8085 microprocessor can typically store 8-bit or 16-bit data.

  • What is the purpose of the Accumulator register in the 8085 microprocessor?

    -The Accumulator register is used for arithmetic and logical operations, and it is the most frequently used register in the 8085 microprocessor.

  • What is the role of the Flag Register in the 8085 microprocessor?

    -The Flag Register is used to store status information such as the result of operations, including whether the result is positive, negative, or zero.

  • What does the Program Counter do in the 8085 microprocessor?

    -The Program Counter holds the address of the next instruction to be executed, ensuring the sequential flow of the program.

  • What is the function of the Stack Pointer in the 8085 microprocessor?

    -The Stack Pointer points to the top of the stack, which is used for temporary storage of data during function calls and returns.

  • What is the purpose of the Temporary Register mentioned in the script?

    -The Temporary Register is used for storing intermediate results before they are moved to their final destination, such as memory or output devices.

  • Why are the registers B, C, D, E, H, and L referred to as General Purpose Registers in the 8085 microprocessor?

    -These registers are called General Purpose Registers because they can be used for a variety of operations and do not have a specific designated function like some of the Special Registers.

Outlines

00:00

💡 Introduction to 8085 Microprocessor Registers

The speaker begins by introducing the topic of the video, which is an explanation of the different types of registers found in the 8085 microprocessor. They mention that in the previous video, the 40-pin architecture was explained, and each pin's significance was discussed. The speaker emphasizes the importance of understanding each unit of the microprocessor before diving into the details of the registers. They explain that registers are storage units within the microprocessor, and the 8085 microprocessor has a set of registers that are the fastest storage units. The speaker also mentions that these registers can store data in 8-bit or 16-bit formats and are categorized into different types, with examples given to illustrate their use in real-life scenarios.

05:00

📚 Detailed Explanation of General and Special Registers

In this segment, the speaker delves deeper into the categorization of registers, specifically into General Purpose and Special Registers. General Purpose Registers are used for storing data during arithmetic and logical operations, and the 8085 microprocessor has six such registers labeled B, C, D, E, H, and L. The speaker clarifies that these registers have predefined names and are used for various operations. Special Registers, on the other hand, include the Accumulator, which is an 8-bit register where arithmetic and logical operations are performed. The speaker also discusses the Flag Register, which holds status information about the results of operations, such as whether the result is positive, negative, or zero. They explain how the Accumulator and Flag Register are directly connected and how their positions are crucial for understanding the microprocessor's architecture.

10:02

🔍 Understanding the Role of Instruction and Program Counter Registers

The speaker continues by explaining the function of the Instruction Register, which temporarily holds the instruction fetched from memory, and the Program Counter, which holds the address of the next instruction to be executed. They describe how the Program Counter is essential for the sequence of operations in a program, as it keeps track of the next instruction's address. The speaker also touches on the Stack Pointer, which is used for managing a stack data structure, commonly used for function calls and returns. They provide an example of a simple program to illustrate how data is stored in registers and how instructions are executed step by step, emphasizing the foundational role of these registers in the microprocessor's operation.

Mindmap

Keywords

💡Microprocessor

A microprocessor is a small computer processor that includes the functions of a central processing unit (CPU) on a single integrated circuit. In the context of the video, the microprocessor is the central theme as the script discusses the architecture and functioning of the 8085 microprocessor, including its various registers and their roles in processing instructions and data.

💡Registers

Registers are small storage locations within the CPU that are used for rapid data access and manipulation. The video script explains different types of registers in the 8085 microprocessor, such as general-purpose registers and special registers, emphasizing their importance in storing and managing data during computation.

💡General-Purpose Registers

These are registers that can be used for a variety of purposes in a program. The script specifically mentions that the 8085 microprocessor has six general-purpose registers (A, B, C, D, E, H, and L) which are used for storing data and are fundamental to the execution of instructions.

💡Special Registers

Special registers have specific roles and cannot be used arbitrarily like general-purpose registers. The video discusses the Accumulator, which is a special 8-bit register in the 8085 where arithmetic operations are often performed, and the Flag Register, which holds status information about the results of operations.

💡Accumulator

The Accumulator is a special register where arithmetic and logical operations are performed. The video script explains that it is the most frequently used register in the 8085 microprocessor and is where the results of operations are stored before being moved to other locations or used in further computations.

💡Flag Register

This register holds status flags that indicate the results of operations, such as whether a result is positive or negative, or if there is a zero result. The video script describes how the Flag Register stores these status values, which are crucial for decision-making in a program.

💡Instruction Register

The Instruction Register holds the current instruction being executed. The video script mentions that after fetching an instruction from memory, it is stored in the Instruction Register before being decoded and executed by the microprocessor.

💡Program Counter

The Program Counter (PC) is a register that holds the address of the next instruction to be executed. The video script explains how the PC is updated after each instruction is fetched and executed, ensuring the sequential flow of a program.

💡Stack Pointer

The Stack Pointer (SP) is used to manage a stack data structure, which is used for temporary storage of data. The video script discusses how the 8085 microprocessor uses the Stack Pointer to push and pop values onto and off the stack, which is essential for functions like saving return addresses and temporary data.

💡Temporary Register

A temporary register is used to store intermediate results during a computation. The video script refers to the Temporary Register as a place where results are stored momentarily before being used in further operations or moved to other registers or memory locations.

💡Instruction Set

The Instruction Set refers to the complete set of operations that a processor can perform. The video script touches upon the concept of an instruction set by explaining how instructions are fetched, decoded, and executed by the microprocessor, which is part of the processor's instruction set architecture.

Highlights

Explanation of different types of registers in the 8085 microprocessor.

Registers are the fastest storage units on the motherboard.

Registers can store up to 8 or 16 bits of data.

Registers are categorized into General Purpose and Special Registers.

General Purpose Registers are used for storing data during operations like addition, subtraction, and multiplication.

The 8085 microprocessor has six General Purpose Registers: B, C, D, E, H, and L.

Registers B and C, D and E, and H and L form pairs that can store 16-bit data.

Special Registers include the Accumulator, Flag Register, Instruction Register, Program Counter, and Stack Pointer.

The Accumulator is an 8-bit register where most operations are performed.

Flag Register stores status information such as sign, zero, and carry flags.

Instruction Register holds the current instruction being executed.

Program Counter holds the address of the next instruction to be executed.

Stack Pointer is used for managing the stack, which is used for function calls and returns.

Temporary Registers are used for storing intermediate results.

Personal Registers are internal and not accessible by the user.

An example of a simple program is given to illustrate the working of registers.

Explanation of how the 8085 microprocessor executes a simple program step by step.

The process of how instructions are fetched, decoded, and executed is detailed.

The role of the Program Counter in fetching the next instruction is explained.

The use of Temporary Registers to store intermediate results before final operations is discussed.

The concept of Personal Registers and their inaccessibility to the user is highlighted.

Transcripts

play00:01

आज की इस वीडियो में एक्सप्लेन करने जा

play00:03

रहा हूं टाइप्स ऑफ रजिस्टर इन 8085

play00:06

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

play00:08

आपको 40 पी आर्किटेक्चर एक्सप्लेन किया था

play00:10

हर एक पी का साइनिफिकेंस हर एक पी का रोल

play00:13

आपको बताया था अगर आपने वो वीडियो नहीं

play00:14

चेक की तो एक बार जरूर चेक कर लेना

play00:16

क्योंकि ये साड़ी एक सीक्वेंस में है

play00:18

माइक्रो प्रोसेसर को एक वीडियो में आप

play00:20

नहीं समझ सकते इसको समझना के लिए साड़ी

play00:23

चीजों को जो है वो एक-एक करके पढ़ना

play00:24

पड़ेगा और ये सीक्वेंस में इसी तरीके से

play00:26

मैं लेक आऊंगा अब इस वीडियो में हम लोग

play00:28

बात करने जा रहे हैं रजिस्टर डिफरेंट

play00:31

टाइप्स ऑफ रजिस्टेंस होते हैं और जी का

play00:33

बेसिकली आपको परपज पता है की ये एक

play00:36

स्टोरेज यूनिट है ठीक है और ये वन ऑफ डी

play00:38

फास्टेस्ट स्टोरेज यूनिट है और ये क्या

play00:40

होते हैं मदरबोर्ड जो माइक्रोप्रोसेसर की

play00:42

जो चिप आप बोल सकते हो उसके ऊपर ही मबड

play00:45

किया जाते हैं क्योंकि ये फास्टेस्ट है

play00:47

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

play00:50

मेमोरी की तरह इसमें आप किलो व्हाइट

play00:51

मेगाबाइट टेराबाइट ऑफ डाटा स्टोर कर सकते

play00:54

हो नहीं इसमें आप ज्यादा से ज्यादा 8 बीट

play00:57

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

play00:59

कर सकते हो और ये सीक्वेंस ऑफ फ्लिप

play01:01

फ्लॉप्स होते हैं जैसे आठ बीट का है तो आठ

play01:04

फ्लिप फ्लॉप्स को कनेक्ट करके लगा दिया तो

play01:06

आप 8 बीट को स्टोर कर सकते हो और यहां पे

play01:08

अलग-अलग कैटिगरी में रेजिस्टेंस को उसे

play01:11

किया जाता है और इनका यूजेस में आपको विद

play01:13

रियल लाइफ एग्जांपल यहां पे एक्सप्लेन

play01:15

करूंगा तो देखो सबसे पहले अगर हम बात करें

play01:17

क्योंकि जो इंटरनल आर्किटेक्चर है ना आईटी

play01:20

जीरो आते फाइव का उसको समझना से पहले आपको

play01:23

उसके हर एक यूनिट को समझना पड़ेगा तो आप

play01:25

बिल्कुल इजीली समझ जाओगे तो इसीलिए बस बने

play01:28

रहो साथ में बिल्कुल लास्ट तक जरूर देखना

play01:29

देखो सबसे पहले अगर हम बात करें यहां पे

play01:32

रेजिस्टेंस को दो कैटिगरीज में दो कैटिगरी

play01:35

में डिवाइड किया है एक है जो जर्नल पर्स

play01:37

एक है स्पेशल रेजिस्टेंस जनरल परपज मतलब

play01:40

जिनका कम है जनरल ठीक है और ये बेसिकली

play01:42

उसे किया जाते हैं डाटा को स्टोर करने के

play01:45

लिए जैसे सम ऑफ तू नंबर कर रहे हैं

play01:47

सब्सट्रैक्शन कर रहे हैं मल्टीप्लिकेशन कर

play01:49

रहे हैं तो वहां पे हम लोग देते हैं ना की

play01:51

ए की वैल्यू 10 बी की वैल्यू 20 तो ये जो

play01:53

वालुज हम दे रहे हैं ये जो डाटा हम पास कर

play01:56

रहे हैं वो डाटा जनरली आपका स्टोर होता है

play01:57

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

play02:00

आता है तो 8 0 85 में ये छह जो है वो आपके

play02:04

जनरल जिससे और इनको कुछ भी नाम नहीं देना

play02:06

ये नाम ऑलरेडी दिए हुए हैं बी सी दी आई हा

play02:11

ल और ये पैर में ही है इसी तरीके से ही

play02:14

इसी पर में बी और सी का पैर है ये आठ इसका

play02:16

साइज है मतलब आप 8 बीट का डाटा इसमें

play02:18

स्टोर कर सकते हो अगर आपको 16 बीट का करना

play02:20

है तो आप इन दोनों का पैर उसे कर सकते हो

play02:23

और यहां पे कई बार पूछ लेते हैं की क्या

play02:25

मैं बी और ए का पैर बना सकता हूं नहीं

play02:27

ऑलरेडी बने हुए हैं बी और सी का एक पैर है

play02:29

डी और ए का पैर है हा और ल का ये पैर है

play02:32

तो ये कहानी जो है वो दिमाग में रखना है

play02:34

देखो

play02:35

अगर मैं इस ब्लॉग डायग्राम की बात करो ना

play02:38

इस पूरे ब्लॉग डायग्राम की जो इंटरनल

play02:40

आर्किटेक्चर है जिसको देख के यादें तो भाग

play02:42

जाएंगे वीडियो ही छोड़ जाएंगे की यार ये

play02:44

कहां से ए गया सर बट ये एक्चुअल में आपको

play02:46

मैं ऐसे समझाऊंगा ना बिल्कुल ऐसे मक्खन की

play02:48

तरह आपको समझ आएगा लेकिन इसको ध्यान से

play02:51

समझना है इसको समझना के लिए सबसे पहले

play02:53

देखो जो मैंने अभी आपको बताया ये जो

play02:55

रजिस्टर का पूरा सेट है ये डिस्टेंस का

play02:57

पूरा एक सेट है उसमें ये रहा बी सी डी ए

play03:00

हा ल बस सिर्फ इसको देखना है अभी और आगे

play03:03

कुछ नहीं करना ठीक है तो ये यहां पे पड़े

play03:05

हैं अब उसके बाद ए जाते हैं हमारे पास

play03:07

स्पेशल रजिस्टर स्पेशल रजिस्टेंस में

play03:10

हमारे पास सबसे पहले सबसे इंपॉर्टेंट ए

play03:12

जाता है एकम्युलेटर एकम्युलेटर आपने कहानी

play03:15

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

play03:17

होती है एलईडी ए इसमें हम लोग करते हैं ना

play03:19

की लोड करो लेटर में कुछ वैल्यू तो ये

play03:22

एकम्युलेटर भी क्या है एक रजिस्टर है 8

play03:25

बीट का रजिस्टर है और यहां पर 8085 में

play03:28

याद करना हमेशा जो सबसे ज्यादा उसे होगा

play03:30

वो एकम्युलेटर और उसका सिंपल सा मैं आपको

play03:33

रीजन बताता हूं जैसे आपने सम ऑफ तू नंबर

play03:35

करना 10 और 20 को जोड़ना है तो याद रखना

play03:38

चाहिए अपने सम करना चाहे मल्टीप्लिकेशन

play03:40

चाहे डिवीजन जब भी आप दो चीजों का या तीन

play03:43

चीजों का उसे कर रहे हो तो आप मां के चलो

play03:45

की आपका डाटा एक डाटा कम से कम एक डाटा तो

play03:49

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

play03:51

आपने ₹10 को जोड़ना है तो आप 10 मां के

play03:54

चलो की कम्युलेटर में आएगा और जो दूसरा

play03:56

डाटा वो इसमें से किसी में भी दाल दो

play03:59

हमेशा याद रखना की कम से कम एक डाटा एक जो

play04:03

आप का सकते हो आपका ऑपरेट जिसको हम बोलते

play04:05

हैं एक्चुअल में ऑपरेट एक अपरांत तो आपका

play04:07

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

play04:11

तीसरा या चौथ जो मर्जी बाकी के बच्चे हुए

play04:13

इनमें से दाल दो लेकिन एक तो कम्युलेटर

play04:15

में आएगा ही आएगा ये भैया मैं आपको रियल

play04:17

लाइफ एग्जांपल से समझाऊंगा अभी दूसरा हो

play04:19

जाता है फ्लैग रजिस्टर का बेसिकली परपज

play04:22

क्या है ये स्टेटस बताते हैं जैसे

play04:25

आप तो रिजल्ट क्या आया प्लस में आया माइंस

play04:28

में आया वो जो स्टेटस है उसका जो साइन है

play04:31

वो फ्लैग रजिस्टर के अंदर होता है आप दो

play04:34

चीजों को कंपेयर कर रहे हो दो नंबरों को

play04:36

भी चेक कर रहे हो की कौन सा बड़ा कौन सा

play04:37

नंबर छोटा है तो कैसे चेक करते हैं जल्दी

play04:39

दोनों को माइंस कर दो दोनों को माइंस किया

play04:41

अगर रिजल्ट पॉजिटिव है तो यानी पहले नंबर

play04:43

है बड़ा और अगर रिजल्ट जो है वो आपका

play04:46

नेगेटिव है तो यानी दूसरा नंबर बड़ा और

play04:48

अगर रिजल्ट दोनों नंबर अगर बराबर है तो

play04:50

रिजल्ट क्या आएगा जीरो आएगा तो ये जो जीरो

play04:52

वैल्यू वो आपका फ्लैग के अंदर स्टोर होगी

play04:55

ऐसी आप दो नंबर को एड करते तो कई बार का

play04:58

ही आता है ना वो करी कहां पे स्टोर होगा

play05:00

इसके अंदर तो ये जो स्टेटस है जो उसकी

play05:02

इंटरमीडिएट वालुज है वो कहानी ना कहानी

play05:04

फ्लैग रजिस्टर में स्टोर होती है और ये भी

play05:06

मैं आपको यहां पे दिखा देता हूं ये देख लो

play05:09

जी ये रहा है आपका एकम्युलेटर ये जो आपकी

play05:11

बस है बस के साथ डायरेक्टली कनेक्ट होता

play05:14

है ये रहा जी आपका फ्लैग फ्लैग ठीक है ये

play05:17

ए ल यू के साथ डायरेक्टली कनेक्ट होता है

play05:19

अभी भारी मत करना की सर अच्छे से बताओ ये

play05:22

आपको मैं नेक्स्ट वीडियो में बताऊंगा अभी

play05:24

सिर्फ आप इनकी ये देख लो पोजिशनिंग कहां

play05:27

है यह आपके जनरल परपज ये आपका एकम्युलेटर

play05:29

ये आपका फ्लैग वाला ए गया नेक्स्ट अभी

play05:31

आपको बताता हूं पहले

play05:33

इंस्ट्रक्शन रजिस्टर इंस्ट्रक्शन रजिस्टर

play05:35

का बेसिकली फंडा क्या है यार आपने एक

play05:38

प्रोग्राम लिखा प्रोग्राम क्या होता है

play05:39

सेट ऑफ इंस्ट्रक्शंस तो जब उन

play05:41

इंस्ट्रक्शंस को आप कल करोगे आप उनको

play05:43

एग्जीक्यूट करना चाहते हो आलू जो है वो

play05:46

उसको एग्जीक्यूट करेगा लेकिन ये

play05:47

एग्जीक्यूट करने के लिए पहले उनको बुलाओ

play05:50

तो सर ही पहले मेमोरी से उनको लेक तो आओ

play05:52

जब आप मेमोरी से उनको लेक आओगे तो वो

play05:55

इंस्ट्रक्शन कहां पे जाके एक बार रेस्ट

play05:57

करेगी बैठेगी इंस्ट्रक्शन रजिस्टर के बाद

play05:59

उसके बाद इसको डिकोड किया जाता है

play06:01

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

play06:03

रजिस्टर का परपज ही है फिर प्रोग्राम

play06:04

काउंटर अगेन वन ऑफ डी मोस्ट इंपॉर्टेंट

play06:07

आपकी जो कहानी है ना पुरी वर्किंग जो है

play06:10

वो कहानी स्टार्ट होती है प्रोग्राम

play06:11

काउंटर से क्योंकि प्रोग्राम काउंटर में

play06:14

इंस्ट्रक्शन का एड्रेस होता है जिसको आपने

play06:17

एग्जीक्यूट करना है मतलब आप स्टार्ट करने

play06:19

जा रहे हो सबसे पहले इंस्ट्रक्शन को

play06:20

एग्जीक्यूट करना है अरे वो इंस्ट्रक्शन

play06:22

आएगी कहां से मुझे क्या पता कहां पड़ी है

play06:24

मेमोरी के अंदर कहानी पे भी बड़ी हो करती

play06:26

है तो कहां पर पड़ी है मेमोरी में वह जो

play06:28

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

play06:30

काउंटर में और जब उसे इंस्ट्रक्शन को हम

play06:32

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

play06:34

इंस्ट्रक्शन का एड्रेस इसके अंदर ए जाता

play06:35

है ताकि नेक्स्ट वाली जो है वो फिर पिक कर

play06:38

ले फिर उससे नेक्स्ट वाली पिक कर ले तो

play06:39

प्रोग्राम राउटर फिर ए जाता है जी आपका

play06:41

स्टॉक पेंटर स्टॉक पेंटर साइज जो है वो

play06:44

साथ-साथ नोट कर लेना स्टैक पेंटर का

play06:46

बेसिकली फंदा क्या है कई बार हमारे पास जो

play06:49

है वो जैसे हम प्रोग्राम होता है

play06:50

प्रोग्राम में हमारे पास डाटा होता है ठीक

play06:52

है इंस्ट्रक्शंस होती है और साथ ही साथ ही

play06:54

इंस्ट्रक्शंस में कई बार हमारे पास स्टॉक

play06:56

का भी उसे करना पड़ता है जैसे जीरो एड्रेस

play06:58

स्ट्रक्चर होती है उसमें हम क्या करते हैं

play07:00

पुश करते हैं वैल्यू को पॉप करते हैं तो

play07:03

जैसे हम करते हैं ना जैसे मैंने करना ए +

play07:05

बी ठीक है अब जीरो इंस्ट्रक्शन में हम लोग

play07:07

पता है क्या करते हैं जीरो एड्रेस में ऐसे

play07:09

करते हैं पुश तो पुश का मतलब क्या है एक

play07:12

तरह से टॉप ऑफ डी स्टॉक में ए को दाल दो

play07:14

फिर मैंने किया पुश इसका मतलब क्या है टॉप

play07:17

ऑफ डी स्टॉक में बी को दाल दो ठीक है फिर

play07:19

अपन ये क्या किया एड तो एड में क्या करेगा

play07:22

ये जो दो वालुज को पॉप करके उनको जोड़ के

play07:25

दोबारा या फिर पुष्कर देगा तो यह जो

play07:27

एक्चुअल में कर कौन रहा है ये स्टैग पेंटर

play07:29

जो है वो एक तरह से टॉप ऑफ डी स्टॉक का

play07:32

एड्रेस जो टॉप ऑफ डी स्टेट मतलब जहां पे

play07:35

मेरी नेक्स्ट लोकेशन खाली है स्टॉक के

play07:37

अंदर उसका एड्रेस जो है वो इसके अंदर होता

play07:39

है और फाइनली ए जाता है टेंपरेरी

play07:41

रेजिस्टेंस नाम से ही पता ग रहा है

play07:43

टेंपरेरी मतलब जो टेंपरेरी डाटा है

play07:45

इंटरमीडिएट जो डाटा है उसको एक बार स्टोर

play07:48

करने के लिए हम इसको लगता हैं जैसे मैंने

play07:50

10 + 20 किया रिजल्ट क्या है आलू ने

play07:53

कैलकुलेट कर दिया क्योंकि आलू अर्थमे

play07:55

टिक को तो 10 + 20 क्या हो गया 30 अब 30

play07:58

को मुझे मेमोरी में स्टोर करवाना है या

play08:01

मेरे को लेट पोज मॉनिटर पे प्रिंट करवाना

play08:04

है ये मुझे प्रिंटर को देना है की भैया

play08:05

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

play08:07

करूंगा पहले उसको मुझे कुछ डर के लिए

play08:09

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

play08:12

के अंदर स्टोर होता है तो बस इसकी पोजीशन

play08:14

देख लो एकम्युलेटर ये आपका टेंपरेरी

play08:16

डिजिटल इसके बाद फिर इसको जो है वो आगे जो

play08:19

भी इसका करना है एक बार एक के लिए स्टोर

play08:21

कर लो उसके बाद आप इसको आगे भेज दो फ्लैग

play08:23

ए जाता है इंस्ट्रक्शन रजिस्टर्ड ए गया

play08:24

ठीक है ये आपके जनरल परपज ए गए तो ये

play08:27

बेसिक बेसिक अब मैं आपको समझता हूं एक

play08:30

सिंपल सा एग्जांपल से ये देखो हमारे पास

play08:33

एक सिंपल सा प्रोग्राम है ईट ए बी सी ए की

play08:36

वैल्यू 10 है बी की वैल्यू 20 है सी = ए +

play08:38

बी सिंपल सी प्रोग्रामिंग में हाय लेवल

play08:41

लैंग्वेज में आप इसको बोल सकते हो इसको

play08:43

हमने क्या किया कंपाइलर को दिया कंपाइलर

play08:45

ने इसको क्या किया लो लेवल लैंग्वेज में

play08:47

कन्वर्ट किया तो बीच में पहले क्या होगा

play08:48

एक फैमिली लेवल लैंग्वेज जिसको मशीन

play08:50

लैंग्वेज बोलते हैं तो यहां पे क्या हो

play08:52

गया मूव ए मतलब ये जो वैल्यू है ये वैल्यू

play08:54

क्या है जीरो ए का क्या है जीरो जीरो जीरो

play08:57

जीरो हेक्साडेसिमल है ना 1010 क्या होता

play09:00

है 10 होता है तो यानी ये मेरी

play09:02

इंस्ट्रक्शन नंबर वन है वैसे तो

play09:04

इंस्ट्रक्शन जो है वो इसके बाद लो लेवल

play09:07

में जीरो वन की फॉर्म में हो जाति है

play09:08

लेकिन जीरो वन की फॉर्म में लिखूंगा तो

play09:10

आपको समझ ही नहीं आएगा वो कॉर्ड समझना है

play09:12

हम इसको इस तरीके से लिख लेते हैं फैमिली

play09:14

में मूव ए इसके बाद हमने लिख दिया मूव बी

play09:17

अब ये 14 का मतलब क्या है वन क्या होता है

play09:19

जीरो जीरो वन 14 का मतलब क्या होता है

play09:21

वहां ये ठीक है तो ये जो है जीरो वन जीरो

play09:25

जीरो तो ये क्या होता है जी आपका ये 20

play09:27

होता है तो आप इसको चेक कर सकते हो ये 20

play09:29

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

play09:31

तू है और उसके बाद मुझे एड करना है

play09:33

इंस्ट्रक्शन नंबर थ्री है ठीक है एड का

play09:35

मतलब पता क्या है ये ए डिफॉल्ट वही है एड

play09:37

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

play09:40

बी को एड कर दो ये इसका मतलब होता है मूव

play09:42

ए इसका मतलब है एकम्युलेटर में 10 वैल्यू

play09:45

को डालो इसका मतलब है बी वाले रजिस्टर में

play09:48

20 को डालो और इसका मतलब क्या हो गया एड

play09:50

कर दो एकम्युलेटर में वैल्यू थी 10 बी में

play09:53

क्या थी 20 तो रिजल्ट क्या ए गया 30 और ये

play09:55

30 एक बार टेंपरेरी स्टोर हो जाएगा तो

play09:58

यहां पर कहानी क्या है ये मेमोरी है

play09:59

मेमोरी के अंदर मेरे किसी एड्रेस पे 1000

play10:02

एड्रेस पे ये इंस्ट्रक्शन पड़ी है 1001 पे

play10:04

मेरी यही इंस्ट्रक्शन पड़ी है 1002 पे

play10:06

मेरी ये इंस्ट्रक्शन पड़ी है ठीक है

play10:08

क्योंकि हमने प्रोग्राम लिखा उसको कंपिल

play10:10

करके सेट ऑफ इंस्ट्रक्शंस में कन्वर्ट कर

play10:11

दिया अब कहानी जो है वो स्टार्ट कहां से

play10:14

थी मैंने अभी बताया प्रोग्राम काउंटर से

play10:16

तो प्रोग्राम काउंटर में बाय डिफॉल्टर

play10:18

सबसे पहले जो स्टार्टिंग वाली इंस्ट्रक्शन

play10:20

है उसका एड्रेस ए गया लो जी हजार एड्रेस ए

play10:23

गया मतलब आप हजार एड्रेस पे जो ये जो

play10:26

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

play10:28

पड़ी है वैसे तो मां के चल रहा है ये जीरो

play10:29

वन की फॉर्म में होती है लेकिन आपको समझ

play10:31

नहीं आएगी ना मुझे बताने में बता रहे हो

play10:33

तो इसीलिए मैंने इसको ऐसे लिख दिया मुंह

play10:34

तो ये इंस्ट्रक्शन जो है वो कल करेंगे यही

play10:37

इंस्ट्रक्शन i1 कहां पे ए जाएगी

play10:39

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

play10:43

हो जाएगी बस के थ्रू आपके पास एड्रेस डाटा

play10:45

बस है उसके थ्रू जो है वो एड्रेस बस के

play10:48

थ्रू एड्रेस पास हो गया और फिर डेटाबेस के

play10:49

थ्रू हमने कल करके उसको इंस्ट्रक्शन

play10:51

रजिस्टर में स्टोर कर दिया ठीक है अब

play10:54

इंस्ट्रक्शन रजिस्टर में ए गई ये

play10:55

इंस्ट्रक्शन इसको फिर डिकोड किया जाता है

play11:00

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

play11:04

एक होता है आपका ऑपरेट मतलब डाटा जैसे

play11:07

इसमें ऑपरेट क्या है तो ये जो भी

play11:09

इंस्ट्रक्शन को रिकॉर्ड करेगा तो 10

play11:11

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

play11:12

तो आपका एक जगह पे कम्युलेटर ऑलरेडी पता

play11:15

ही है एकम्युलेटर में क्या वैल्यू ए गई 10

play11:17

फिर दूसरी में जो प्रोग्राम काउंटर जैसी

play11:20

हम इंस्ट्रक्शन को फेच करते हैं और उसके

play11:23

बाद जब इसको डिकोड करते हैं ना तो डिकोड

play11:25

करते टाइम ये एक्चुअल में वैल्यू

play11:26

इंक्रीमेंट हो जाति है ऑटोमेटेकली तो एक

play11:29

हजार एक मतलब अब 1000 एक वाली फ्रैक्शन को

play11:31

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

play11:33

अंदर आई तू ए गया इसको डिकोड किया जब

play11:35

रिकॉर्ड किया तो पता लगा की आपका एक वीर

play11:38

रजिस्टर को उसे करो और उसमें क्या दाल दो

play11:40

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

play11:43

इंक्रीमेंट हो के तू पे होगी अब तू वाली

play11:44

को कल करो एड भी इसको हमने बुलाया

play11:47

इंस्ट्रक्शन जिसमें i3 ए गई इसको रिकॉर्ड

play11:49

किया तो रिकॉर्ड करने के बाद पता लगा भैया

play11:51

एड करना है ए कम्युलेटर और बी की वैल्यू

play11:53

को एड करना है तो आलू के पास है ही आलू

play11:57

क्या करेगा 10 और 20 की वैल्यू क्योंकि

play11:59

ऑलरेडी कनेक्ट है ए ल यू कम्युलेटर से भी

play12:02

कनेक्ट और बी से डाटा को कल कर लगा बस के

play12:04

थ्रू और उनकी वैल्यू जो है वो 30 कर देगा

play12:06

और 30 को कहां पर स्टोर कर देगा एक बार

play12:09

टेंपरेरी रजिस्टर में उसके बाद आप इसको

play12:11

मेमोरी में स्टोर करना चाहते हो प्रिंटर

play12:14

को देना चाहते हो मॉनिटर को देना चाहते हो

play12:15

इनपुट आउटपुट डिवाइस को जिसको मर्जी दो वो

play12:17

बात की बात है तो में में कहानी वर्किंग

play12:20

आपको पता लगी ये नोट कर लेना ये बेसिक है

play12:22

ये फाउंडेशन अगर ये क्लियर नहीं होगा तो

play12:24

माइक्रो पोज़ से क्लियर नहीं होगा आई होप

play12:27

की आपको सारे रेजिस्टेंस की वर्किंग जो है

play12:29

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

play12:31

छोटा सा पॉइंट है जो टेंपरेरी जिसमें

play12:34

हमारे पास एक तो ये मैंने ऑलरेडी आपको बता

play12:36

दिया की इंटरमीडिएट रिजल्ट्स को स्टोर

play12:37

करता है या फिर जैसे एक वैल्यू के

play12:40

कम्युलेटर में ए चुकी है और जो दूसरी

play12:41

वैल्यू बी में थी वो बी की वैल्यू भी कल

play12:44

करके एक बार टेंपरेरी में डालेंगे और फिर

play12:45

आलू को दोनों वालुज देंगे लास्ट में हमारे

play12:48

पास ये दो रजिस्टर जो है वो ब्लू और स बट

play12:52

हमारे पास बी सी डी ए और न ये तो हमारे

play12:55

जनरल पर बैंड हो गए स्टूडेंट को लगता है

play12:57

सर डब्लू और जेट भी तो हमारे जनरल परपज है

play12:59

नहीं ये ब्लू और स एक्चुअल में क्या है ये

play13:02

इस 8 0 85 के पर्सनल आपके ए सकते हो की

play13:06

इसके पर्सनल रेजिस्टेंस है यूजर इनको उसे

play13:09

नहीं कर सकता हमारे पास इसका कोई

play13:10

ऑथराइजेशन है हम ना इसमें से रीड कर सकते

play13:12

हैं ना इसमें कुछ राइट कर सकते हैं ये

play13:14

इंटरनल खुद इसको उसे करता है वर्किंग के

play13:17

लिए एग्जांपल के तोर पर एक छोटा सा

play13:19

एग्जांपल देता हूं जैसे मैं अगर करना

play13:21

चाहता हूं स्वैप ऑफ तू नंबर कई बार हम

play13:23

करते हैं ना सी प्रोग्रामिंग में स्वैप ऑफ

play13:25

तू नंबर्स करना है जैसे एक की वैल्यू है

play13:27

10 और बी की वैल्यू है 20 और मुझे इन

play13:30

दोनों को स्वाइप करना है ए में 20 करना है

play13:31

बी में 10 करना है तो इसको करने के लिए

play13:33

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

play13:35

एकम्युलेटर में 10 ए गई दूसरी वैल्यू लेट

play13:37

को दूसरे रजिस्टर में हमने 20 दाल दी अब

play13:39

यहां पे इस रजिस्टर का उसे करेगा कौन

play13:42

इंटरनल ये तो टेंपरेरी रजिस्टर हमारे पास

play13:45

एक तो ये हो गया दूसरे हमारे पास दो है

play13:47

टेंपरेरी में ब्लू और स जो इसके पर्सनल है

play13:50

तो क्या करेगा एक बार 10 की वैल्यू जो ए

play13:53

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

play13:55

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

play13:57

एक तरह से ए में दाल दी और फिर उसके बाद

play14:00

ये वाली जो वैल्यू थी वो किसमे दाल दी में

play14:02

दाल दी तो इसका इंटरनल ही वो उसे करता है

play14:04

इस तरीके से यूजर के पास इसको उसे करने की

play14:08

कोई ऑथराइजेशन नहीं होती तो ये पॉइंट भी

play14:10

नोट कर लेना थैंक यू

Rate This

5.0 / 5 (0 votes)

相关标签
Microprocessor8085RegistersArchitectureEducationalTechnologyComputer ScienceMicroprocessor TutorialElectronicsProgramming
您是否需要英文摘要?