Lec-6: Types of Flag Register in 8085 Microprocessor | Auxiliary carry | Parity | Carry flag

Gate Smashers
12 Jun 202312:18

Summary

TLDRThis educational video script delves into the intricacies of the flag register in the 8085 microprocessor. It explains the function of each bit within the 8-bit register, including the significance of the Carry flag, Sign flag, Zero flag, and Parity flag. The instructor uses examples to illustrate how these flags are affected by operations like addition, emphasizing the importance of understanding flag behavior for programming and debugging. The script is designed to provide a clear understanding of how the flag register operates in the 8085, which is crucial for students or developers working with this microprocessor.

Takeaways

  • 😀 The video explains the function of the Flag Register in the 8085 microprocessor, detailing how each bit within the 8-bit register contributes to its operation.
  • 🧠 The Sign Flag (SF), also known as the 7th bit, indicates the sign of the result in the accumulator, representing positive or negative values.
  • 🚫 The Zero Flag (ZF), or the 2nd bit, signifies whether the result in the accumulator is zero, with zero representing a false condition and one representing a true condition.
  • 🔄 The Parity Flag (PF), the 4th bit, is used to check the evenness of the number of set bits in the result; a zero indicates odd parity, and one indicates even parity.
  • ➕ The Overflow Flag (OF), the 6th bit, is set to one if an arithmetic operation results in a value too large to be represented within the allowed space, indicating an overflow.
  • 🔒 The Carry Flag (CF), the 1st bit, is used in arithmetic operations to indicate a carry out from the most significant bit, signifying an additional unit in binary addition or a borrow in binary subtraction.
  • 🔢 The Auxiliary Carry Flag (AC), the 5th bit, is used in binary-coded decimal (BCD) arithmetic to indicate a carry between the low nibble (the lower four bits) and the high nibble.
  • 💡 The video emphasizes the importance of understanding how flags are affected by operations such as addition, and how to interpret the results based on the state of these flags.
  • 📚 The script provides examples to illustrate how the flags are set after operations like addition, focusing on the practical application of the 8085's Flag Register in real-world scenarios.
  • 🔄 The concept of how the flags are updated after each operation is crucial for understanding the microprocessor's behavior and is a central theme of the video.

Q & A

  • What is the size of the flag register in the 8085 microprocessor?

    -The size of the flag register in the 8085 microprocessor is 8 bits.

  • What does the Sign flag (S) in the flag register represent?

    -The Sign flag (S) in the flag register represents the sign of the result in the accumulator. A value of 1 indicates a negative result, while a value of 0 indicates a positive or zero result.

  • What is the role of the Carry flag (C) in the 8085 microprocessor?

    -The Carry flag (C) in the 8085 microprocessor is used to indicate an overflow or carry out of the most significant bit during arithmetic operations.

  • What does the Auxiliary Carry flag (AC) signify during arithmetic operations?

    -The Auxiliary Carry flag (AC) is used to indicate a carry from the low nibble (lower 4 bits) during arithmetic operations, which is particularly important in binary-coded decimal (BCD) arithmetic.

  • How is the Zero flag (Z) affected by the result of an operation in the 8085?

    -The Zero flag (Z) is set to 1 if the result of an operation is zero, and it is cleared to 0 if the result is non-zero.

  • What is the significance of the Parity flag (P) in the 8085 microprocessor?

    -The Parity flag (P) is used to indicate the parity of the low-order 8 bits of the result. If the number of set bits (1s) in the result is even, the parity flag is set to 1, indicating even parity; otherwise, it is set to 0 for odd parity.

  • How does the Overflow flag (OV) work in the 8085 during arithmetic operations?

    -The Overflow flag (OV) is set when an arithmetic operation results in a value that is too large to be represented within the allowed range of the register, indicating that an overflow has occurred.

  • What is the purpose of the unused bits in the flag register of the 8085?

    -The unused bits in the flag register of the 8085 do not have any specific function and are typically ignored during operations. Their values may change but do not affect the processor's behavior.

  • Can you explain how the Carry flag is determined when adding two hexadecimal numbers in the 8085?

    -When adding two hexadecimal numbers in the 8085, the Carry flag is determined by the carry out of the most significant bit of the result. If there is a carry out, the Carry flag is set to 1; otherwise, it remains 0.

  • What is the purpose of the Instruction flag (IF) in the 8085 microprocessor?

    -The Instruction flag (IF) is used to enable or disable interrupts in the 8085 microprocessor. When set to 1, it allows maskable interrupts, and when cleared to 0, it disables them.

  • How does the result of an addition operation affect the flags in the 8085 flag register?

    -The result of an addition operation in the 8085 affects the flags as follows: the Carry flag is set if there is a carry out of the most significant bit, the Auxiliary Carry flag is set if there is a carry out of the lower nibble, the Zero flag is set if the result is zero, the Sign flag reflects the sign of the result, and the Parity flag is set if the number of 1s in the result is even.

Outlines

00:00

💻 Understanding the Flag Register in 8085 Microprocessor

This paragraph delves into the intricacies of the flag register in the 8085 microprocessor. It discusses the size and significance of each bit within the 8-bit flag register. The paragraph explains the role of the Sign (S) bit, which indicates the sign of the result, and the Carry (C) bit, which signifies an overflow in arithmetic operations. The Zero (Z) bit is highlighted, which is set if the result is zero. The Auxiliary Carry (AC) bit is also covered, which is used for binary-coded decimal (BCD) arithmetic. The concept of setting and clearing these bits through operations like addition is explored, with examples provided to illustrate how the bits reflect the outcome of operations.

05:02

🔢 Detailed Explanation of Carry and Parity Flags in 8085

Paragraph 2 provides an in-depth look at the Carry (C) and Parity (P) flags in the 8085 microprocessor. It explains how the Carry flag is set to 1 if there is a carry out of the most significant bit during an addition, and the Parity flag is set if the number of set bits in the result is even. The discussion includes examples of adding two numbers and how the Carry and Parity flags are affected by the operation. The importance of considering the result's most significant bit when evaluating the Parity flag is emphasized, ensuring that the summary reflects a comprehensive understanding of the flag register's behavior during arithmetic operations.

10:04

📊 Impact of Operations on Overflow and Sign Flags in 8085

The third paragraph focuses on the Overflow (OV) and Sign (S) flags within the 8085 microprocessor's flag register. It explains how the Overflow flag is set when an arithmetic operation results in a value that is too large to be represented within the allowed range, indicating a sign change in the result. The Sign flag, which reflects the most significant bit of the result, is also discussed. The paragraph uses examples to demonstrate how these flags are affected by different operations, such as addition, and how they can be used to determine the correctness of the operation's outcome. The summary captures the nuances of how overflow and sign flags are influenced by the processor's operations.

Mindmap

Keywords

💡Flag Register

The Flag Register is a crucial component in the 8085 microprocessor discussed in the video. It is an 8-bit register that holds status flags, which indicate the results of arithmetic and logical operations. Each bit in the Flag Register has a specific role, such as the Sign Flag (S), Zero Flag (Z), and Carry Flag (C). The video explains how these flags are set or cleared based on the outcomes of operations, which is essential for conditional branching in programming.

💡Sign Flag (S)

The Sign Flag is one of the bits in the Flag Register that indicates the sign of the result of an operation. If the result is negative, the Sign Flag is set to 1; if it's positive or zero, it's set to 0. The video uses examples of adding hexadecimal numbers to illustrate how the Sign Flag is affected by the outcome, which is vital for understanding the arithmetic operations in the 8085 microprocessor.

💡Zero Flag (Z)

The Zero Flag is another bit in the Flag Register that gets set to 1 if the result of an operation is zero, and to 0 otherwise. The video script mentions how this flag is used to check for conditions where the outcome is exactly zero, which is important for decision-making in programs, such as skipping certain code blocks when the result is not zero.

💡Carry Flag (C)

The Carry Flag is used to indicate an overflow in arithmetic operations, such as when the result exceeds the maximum value that can be stored in the register. The video explains how adding two numbers can set the Carry Flag if there is a carry from the most significant bit. This concept is essential for understanding how arithmetic overflows are managed in the 8085 microprocessor.

💡Parity Flag (P)

The Parity Flag is part of the Flag Register and is used to indicate the evenness or oddness of the number of set bits in the result of an operation. If the number of set bits (1s) is even, the Parity Flag is set to 1; if odd, it is set to 0. The video discusses the Parity Flag in the context of error detection in data transmission, where it can be used to check for an even number of bits.

💡Auxiliary Carry Flag (AC)

The Auxiliary Carry Flag is used to indicate a carry from the low nibble (the lower four bits) during arithmetic operations. This flag is distinct from the Carry Flag, which indicates a carry from the high nibble. The video script provides examples of addition where the Auxiliary Carry Flag is set or cleared, which is important for understanding operations that involve smaller parts of a byte.

💡Hexadecimal

Hexadecimal is a base-16 number system used extensively in computing to represent binary numbers in a more compact form. The video script mentions hexadecimal numbers like '10h' and '90h' and explains how they are added using the 8085 microprocessor. Understanding hexadecimal is crucial for working with the 8085, as it simplifies the representation of binary values and operations on them.

💡Arithmetic Operation

Arithmetic operations such as addition and subtraction are fundamental to the functioning of the 8085 microprocessor. The video script discusses how these operations affect the Flag Register, particularly the Carry Flag and the Sign Flag. Understanding these operations is key to programming and controlling the microprocessor for various tasks.

💡Binary Representation

Binary representation is the way numbers are expressed in base-2, using only 0s and 1s. The video script refers to binary representation when explaining how numbers are stored and manipulated in the 8085 microprocessor. For instance, the script mentions how hexadecimal numbers are internally represented in binary form within the processor.

💡Nibble

A nibble is a four-bit aggregation, which is half of an octet (byte). The video script uses the term 'nibble' when discussing the Auxiliary Carry Flag, which is set based on the carry from the lower nibble during addition. Understanding the concept of a nibble is important for grasping how the 8085 microprocessor handles partial-byte operations.

💡Overflow

Overflow occurs when an arithmetic operation exceeds the maximum value that can be stored in a register. The video script explains how the Carry Flag is used to indicate overflow in the 8085 microprocessor. This concept is crucial for error checking and ensuring that calculations do not exceed the processor's capacity.

Highlights

Explanation of the Flag Register in the 8085 microprocessor, detailing the significance of each bit.

Description of the Sign Flag (SF) and its role in representing the sign of a number.

Discussion on the Zero Flag (ZF) and how it indicates when the result is zero.

Explanation of the Carry Flag (CF) and its function in arithmetic operations.

Clarification on the Parity Flag (PF) and its use in checking the number of set bits in a result.

Details on the Auxiliary Carry Flag (ACF) and its role in arithmetic operations involving BCD.

The concept of the Unused Flags and their non-significance in the Flag Register.

Explanation of how the Overflow Flag (OF) indicates an arithmetic overflow.

Demonstration of adding two hexadecimal numbers and the effect on the Carry Flag.

Example of adding two numbers resulting in a Carry Flag set to one.

Discussion on the importance of considering only the lower 8 bits of the result for the Parity Flag.

Explanation of how the result's high bits are not considered when updating the Sign Flag.

Clarification on the behavior of the Auxiliary Carry Flag during binary-coded decimal (BCD) addition.

Example of an addition operation where the Auxiliary Carry Flag is set due to a carry from bit 3.

Emphasis on the fact that the Overflow Flag is updated based on the result of operations, not based on the input values.

Summary of how flag values are determined after each operation, highlighting the importance of understanding flag behavior.

Transcripts

play00:00

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

play00:02

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

play00:03

फ्लैग रजिस्टर इन 8085 लास्ट वीडियो में

play00:06

मैंने आपको फूल वर्किंग बताई है की 8085

play00:09

किस तरीके से कम करता है कौन सा कंपोनेंट

play00:10

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

play00:13

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

play00:14

जो है वो क्या है 8 बीट का तो यहां पे हर

play00:17

बीट जो है वो क्या एक्चुअल में

play00:19

साइनिफिकेंस क्या उनका रोल है तो वो मैं

play00:21

आपको बताता हूं तो अगर मेरे पास 8 बीट का

play00:24

फ्लैग रजिस्टर है तो इसमें अगर हम बात

play00:26

करें यहां पे एसएसबी बीट ये जो एलएस भी

play00:29

बीट है इसमें ये वाली जो है वैल्यू वो

play00:31

किसको रिप्रेजेंट करती है करी फ्लैग को ये

play00:34

एक्चुअल में क्या रिप्रेजेंट कर रहा है

play00:35

करी फ्लैग ठीक है अब उसके बाद हमारे पास

play00:38

नेक्स्ट जो बीट आई है ये क्या है उन यूज्ड

play00:41

इसको इन्होंने उसे ही नहीं किया ठीक है तो

play00:43

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

play00:45

है हमें कोई लेना देना नहीं है लेकिन यहां

play00:46

पे जीरो या वन होगा तो उसका एक रोल है

play00:49

उसका एक मीनिंग है दें ए जाता है हमारे

play00:51

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

play00:54

फलक अब परिर्टी फ्लैग में भी वैल्यू या तो

play00:56

जीरो हो शक्ति है वन हो शक्ति है तो ये भी

play00:58

एक इसका भी एक की जीरो पर क्या है वन पे

play01:01

क्या है तो यहां पे नेक्स्ट ए जाता है

play01:03

हमारे पास ये भी खाली स्पेस है इसको

play01:05

इन्होंने कोई उसे नहीं किया तो छोड़ो इसको

play01:07

उसके बाद ए जाता है हमारे पास ऑग्ज़ीलियरी

play01:09

करी ऑक्सिजनिक करी कई बार एक्स भी लिख

play01:12

देते हैं ए सी भी लिख देते हैं तो इसमें

play01:14

कंफ्यूज नहीं होना ऑक्सिजनरी भी या तो

play01:17

वैल्यू जीरो हो शक्ति है वन हो शक्ति है

play01:18

कब जीरो होगी कब बनोगी वो मैं आपको एक-एक

play01:20

करके एग्जांपल के साथ बताऊंगा फिर हमारे

play01:22

पास एक स्पेस है वो हमारे पास अनयूज़्ड है

play01:24

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

play01:27

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

play01:29

आपके पास जीरो फ्लैग इसकी वैल्यू भी जीरो

play01:32

हो शक्ति है वन हो शक्ति है कब जीरो कब वन

play01:34

वो भी एक अपने आप में जो है वो आपको

play01:36

एग्जांपल के साथ करवाऊंगी दें हमारे पास ए

play01:39

जाता है लास्ट में सन फ्लैग तो साइन मतलब

play01:42

वही पॉजिटिव नेगेटिव तो कब पॉजिटिव कम

play01:44

नेगेटिव कब जीरो कब वन वो आपको साड़ी

play01:46

कहानी एक-एक करके बताऊंगा तो पहले इसको

play01:48

सिर्फ नोट कर लो की हर एक करी की एक्चुअल

play01:51

में फूल फॉर्म क्या है और किस तरीके से

play01:52

उसे होती है तो देखो सबसे पहले अगर हम बात

play01:55

करें करी फ्लैग की तो करी फ्लैग का रोल

play01:59

क्या है मतलब अब ये वैल्यू जीरो होगी कभी

play02:01

वैल्यू वन होगी यही आपसे पूछती है तो लेट

play02:03

हमारे पास एक नंबर है ए

play02:05

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

play02:08

नंबर है 10h ठीक है 10h एक है हमारे पास

play02:12

नंबर लेट स्पंस तू जीरो हा ये क्ट्स है अब

play02:17

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

play02:20

अब एड बी का आपको मतलब पता ही है की क्या

play02:22

होता है

play02:23

एकम्युलेटर में ऑलरेडी लेट पोस्ट मेरे पास

play02:25

एक ही वैल्यू है उसमें बी की वैल्यू को एड

play02:28

करो और जो रिजल्ट है वो एकम्युलेटर में

play02:31

स्टोर करो तो सबसे पहले क्या होगा ए

play02:33

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

play02:34

जो है वो एकम्युलेटर में ए गई अब 10 में

play02:38

है तो मैं इसको कैसे ओपन करूंगा अगर मैं

play02:40

इसको ओपन करूं तो यानी वन भी अपने आप में

play02:43

क्या है 4 बीट का और जीरो भी अपने आप में

play02:45

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

play02:47

तो आप इसको 10 को क्या लिखने 10 लिख देते

play02:49

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

play02:52

और मेली आपको हेक्साडेसिमल ही दिया होगा

play02:54

यहां पे तो इसीलिए कंफ्यूज मत होना

play02:56

हेक्साडेसिमल में हमारे पास पता है की हर

play02:58

एक नंबर

play02:59

बीट में रिप्रेजेंट करते हैं तो वन जो है

play03:02

वो क्या होगा 4 बीट में जीरो जीरो वन ठीक

play03:04

है अब जीरो जो है वो क्या हो गई सिंपल अब

play03:08

तू जो है वो क्या होगा जीरो जीरो वन जीरो

play03:10

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

play03:12

ये लो जी ठीक है अब यहां पे करना क्या है

play03:14

इन दोनों का एडिशन इन दोनों को क्या करना

play03:17

है एड करना है तो देखो इसको हम बोलते हैं

play03:20

इसको एक तरह से आप का सकते हो की ये मेरी

play03:21

दी जीरो बीता है डी वन है d2 है d2 है दी

play03:26

फोर है d5 है दी 6 और दी 7 बीता ठीक है और

play03:31

इसको आप फरदर ये भी का सकते हो की ये अपने

play03:34

आप में क्या है एक बाइबल बाइबल का मतलब

play03:36

क्या होता है 4 बीट का जैसे नहीं बाल आठ

play03:39

बीट का क्या होता है व्हाइट होता है ऐसे

play03:40

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

play03:43

ये एक तरह से यहां पे जो है वो बाइबल बन

play03:45

गया और ये भी एक तरह से क्या है नी तो ये

play03:48

लोअर नहीं बोला ये अप्परवेबल ठीक है तो

play03:50

यहां पे अगर हम बात करें ये इसी तरीके से

play03:52

आप इसको भी मेंशन कर सकते हो तो सिंपली

play03:54

आपको एडिशन करनी है तो ये तो जीरो हो गया

play03:56

0 + 0 + 0 + 0 ये जीरो वन प्लस क्या होता

play04:00

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

play04:02

गया जी जीरो जीरो प्लस जीरो क्या होता है

play04:04

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

play04:07

है वो क्या ध्यान में रखना है की ये जो

play04:09

लास्ट में ये जो दी 7 वाला देखो ध्यान से

play04:12

d7 वाली ये जो वैल्यू ऊपर वाली थी जीरो

play04:15

नीचे वाली जीरो इन दोनों को जब एड किया तो

play04:17

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

play04:20

इस वाले से दी 7 से इस तरफ को कोई भी जीरो

play04:25

या वन जो है कोई भी करी जो है वो आगे ए

play04:27

रहा है कोई का रही है यहां पे ए रहा है

play04:29

यहां पे कोई करी एक तरह से नहीं ए रहा आप

play04:31

इसको क्या लिख सकते हो एक तरह से करी जो

play04:33

है वो जीरो के बराबर है ठीक है क्योंकि

play04:34

कुछ नहीं ए रहा तो जीरो तो आप लिख सकते हो

play04:36

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

play04:39

जो नेट हुई जीरो तो अगर मेरी दी 7 बीट

play04:41

क्या जेनरेट कर रही है अगर तो ये का रही

play04:44

है जेनरेट कर रही है वन तो यहां पे सी ए

play04:46

की वैल्यू क्या हो जाएगी वन और अगर ये दी

play04:49

7 बीट मेरी जेनरेट कर रही है का रही जीरो

play04:51

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

play04:53

जीरो बस ये सिंपल सा फंड है एक और

play04:56

एग्जांपल से करते हैं लेट पास हमारे पास

play04:57

नंबर है एक नंबर कर लेते हम 80 हा और लेट

play05:02

से दूसरा नंबर हम ले लेते हैं 90 हा इन

play05:05

दोनों को अगर एड करना है तो देखो 8 0 को

play05:07

क्या लिखोगे आते क्या होता है एक्स में या

play05:10

10 जीरो जीरो और जीरो तो आप आज आईटी इस

play05:12

लिख लो ठीक है वैल्यू कुछ भी दे सकते हैं

play05:14

आपको नाइन क्या होता है 1 0 0 1 ठीक है तो

play05:17

ये आपका इस तरीके से हो गया अब इन दोनों

play05:20

को जब आप एड करोगे तो ये तो आपका जीरो

play05:22

जीरो ही रहेगा ये हो गया जी आपका वन ये हो

play05:25

गया जीरो ये हो गया जीरो अब देखो ध्यान से

play05:27

1 + 1 क्या होता है तू तू मतलब एक तरह से

play05:30

जीरो वन ठीक है अब ये देखो जी आपकी दी 7

play05:34

बीट ये d7 बीट थी दी 7 ने कोई करी जेनरेट

play05:38

किया किया क्या वैल्यू जेनरेट की वन

play05:40

जेनरेट की तो यहां पे एक तरह से सी ए की

play05:43

वैल्यू क्या हो गई वन हो गई तो आप इसको ये

play05:45

लिख सकते हो की यहां पे सी ए की वैल्यू एक

play05:47

तरह से वन होगी इस कैसे में सी ए की

play05:49

वैल्यू जीरो बस सिर्फ आपको ये वाली वैल्यू

play05:52

जो है वो चेक करनी है अगर ये जेनरेट कर

play05:55

रही है वन तो सी वे की वैल्यू वन अगर ये

play05:57

जेनरेट करिए जीरो तो सी ए की वैल्यू जीरो

play05:59

बस यह कहानी आपकी सी वे फ्लैग की उसके बाद

play06:03

हमारे पास ए जाता है

play06:05

अगर हम परिर्टी फ्लैग जो है वो अपने आप

play06:08

में क्या है आईएफ डी टोटल नंबर ऑफ वंस इन

play06:11

डी रिजल्ट इसे एवं दें परिर्टी बीट जो है

play06:14

वो क्या होगी वन होगी आईएफ डी टोटल नंबर

play06:16

ऑफ वन इन डी रिजल्ट इसे ओड दें परिर्टी

play06:19

इसे इक्वल तू जीरो तो यहां पे क्या का रहा

play06:21

है अगर मेरे टोटल नंबर ऑफ वन रिजल्ट में

play06:23

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

play06:26

गई वन होगी तो देखो यहां पे टोटल नंबर ऑफ

play06:28

वन देखो ये वाला जो आपका रिजल्ट हमेशा याद

play06:31

रखना इसी कैसे में ये आपको एग्जांपल के

play06:34

बता रहा हूं तो लेट पोस्ट यहां पे मेरा

play06:36

रिजल्ट क्या है दिस इसे योर रिजल्ट ठीक है

play06:38

हमने इनपुट दी थी आठ बीट की आठ बीट की और

play06:43

रिजल्ट आया ये तो आठ बीट है और एक करी जो

play06:46

है वो अपने आप में क्या है जीरो तो जब भी

play06:48

आप रिजल्ट लेते हो तो रिजल्ट भी आपको आठ

play06:51

बीट का ही कंसीडर करना है नहीं समझ आया

play06:53

यहां पे देखो आपने आठ बीट का इनपुट दिया

play06:56

आठ बीट का इनपुट तो आपका रिजल्ट जो है वो

play06:59

सिर्फ यही तक है बस इस पॉइंट को नोट कर लो

play07:02

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

play07:05

का जो ट्रक्स है वो इसी के ऊपर डिपेंड कर

play07:07

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

play07:10

तक है लोगों को पता है क्या लगता है की

play07:12

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

play07:16

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

play07:19

से सी ए के अंदर कंसीडर हो गया ये तो मेरा

play07:22

करी के अंदर ए गया ये तो नाइंथ बीट है

play07:24

हमें रिजल्ट देखना तो रिजल्ट सिर्फ इसी को

play07:27

चेक करना है तो अब आपको जब परिर्टी की

play07:29

वैल्यू देखनी है तो परिर्टी की वैल्यू आप

play07:32

सारे नो में से देखोगे अगर आप सारे नो में

play07:35

से देखोगे तो आपको क्या लगेगा नंबर ऑफ वंस

play07:38

कितने हैं तू अगर आप सैरा को देखोगे तो

play07:40

नंबर ऑफ वंस कितने हैं तू लेकिन अगर आपने

play07:43

इशारों को देखा नंबर वन से किया है तू तो

play07:45

यहां पे देखो अगर मेरे पास नंबर ऑफ वन

play07:47

क्या है एवं तो परिर्टी की वैल्यू क्या हो

play07:49

गई वन अगर आप पूरे को देखोगे नंबर वन

play07:51

कितने है तू तो आप क्या कर डॉग परिर्टी की

play07:54

वैल्यू को वन कर डॉग बट ये गलत है आपको

play07:59

रिजल्ट में सिर्फ यही आठ बेटी चेक करनी है

play08:02

यह नहीं करनी तो इन आठ को देखो नंबर वन

play08:05

कितने हैं एक ही है तो यानी ओड ओड है तो

play08:08

यानी इसकी वैल्यू क्या हो गई जीरो होगी बस

play08:10

ये पॉइंट जो है वो नोट कर लो इसके अलावा

play08:13

कुछ भी नहीं तो जो मर्जी वालु दे दे जैसे

play08:15

इसमें तो आठ की आठ क्या अगर आप नो भी चेक

play08:17

कर लो वैसे तो आठ ही चेक करनी है बट अपने

play08:19

आप में ये तो है ही नहीं जीरो ये तो ये

play08:21

आपके पास नंबर वंस कितने हो गए दो दो हो

play08:23

गए मतलब क्या है एवं एवं है तो परिर्टी की

play08:25

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

play08:29

कैसे आपका बड़ा इंपॉर्टेंट है क्योंकि

play08:30

यहां पे मैक्सिमम लोगों को लगेगा की सर

play08:33

इसको क्यों नहीं कंसीडर किया अरे भैया 8

play08:35

बीट का रिजल्ट है ये तो आपकी करी आई थी तो

play08:38

8 बीट में देखो नंबर वन कितने हैं सिर्फ

play08:40

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

play08:42

क्या हो गई जीरो हो गई बस ये पॉइंट याद

play08:45

रखना इसके अलावा इसमें कुछ भी नहीं है फिर

play08:47

ए जाता है हमारे पास तीसरा ऑक्सीडेशनरी

play08:49

करी ऑक्सीजन ही का रही जो है वो जनरली जो

play08:52

है वो किस तरीके से उसे किया जाता है ये

play08:53

मैं आपको यहां पे एग्जांपल मैं बताता हूं

play08:54

ऑक्सीडेशन का रही हूं मैं क्या है बस

play08:57

थोड़ा सा फर्क है जैसे देखो मैंने यहां पे

play08:59

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

play09:02

से 10 हा ले लेते हैं और बी वैल्यू ले

play09:04

लेते हैं लेट से 20 हा ठीक है अब यहां पे

play09:07

इसको आप क्या लिखोगे जीरो जीरो वन जीरो

play09:09

जीरो जीरो ठीक है और इसको लिखोगे जीरो

play09:11

जीरो वन जीरो जीरो जीरो तो यहां पे अगर आप

play09:14

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

play09:17

मैंने क्या बताया था की ये डी जीरो ये d1

play09:20

ये d2 ये दी थ्री बस यहां पे एक्सिलरी में

play09:24

याद रखना ऑग्ज़ीलियरी में वहीं से करी

play09:27

वाला कॉन्सेप्ट है लेकिन यहां पे d3 बीट

play09:31

को देखना है वहां पे हमने दी 7 बीट को

play09:34

देखा था कहानी वही है वहां पे दी 7 कंसीडर

play09:38

कर रहे थे की d7 जेनरेट क्या कर रहा है

play09:40

यहां पे दी थ्री बीट को देखेंगे की दी

play09:43

थ्री क्या जेनरेट कर रहा है तो देखो यहां

play09:45

पे d3 को अगर मैं एड करूं तो 0 + 0 क्या

play09:47

है जीरो यानी अपने आप में एक तरह से जीरो

play09:50

ही जेनरेट कर रहा है तो यानी ऑक्सिजनरी जो

play09:52

का रही है उसकी वैल्यू क्या हो गई 0 हो गई

play09:55

क्लियर बस ये सिंपल सा कॉन्सेप्ट है एक और

play09:57

एग्जांपल से बताता हूं लेट ए मेरे पास

play10:00

नंबर है 18 और बी मेरे पास नंबर है लेट से

play10:03

2a ठीक है एग्जैक्ट ऐसे नंबर है तो इसको

play10:06

अगर मैं 4 बीट में रिप्रेजेंट करूं वन

play10:07

क्या होगा 0 0 1 8 क्या होगा 1 0 0 तू

play10:12

क्या होगा जीरो जीरो और एट क्या होगा 10

play10:15

जीरो जीरो ठीक है अब यहां पे दी थ्री बीते

play10:18

याद रखना ये है ठीक है जो लोअर नहीं बना

play10:20

उसकी एक तरह से एम में से भी जो नॉरमेबल

play10:23

है उसकी एमसी तो d3 बाकी कुछ नहीं बाकी तो

play10:26

आप सिर्फ ऑपरेशन करो अपना जो भी करना है

play10:28

एड प्लस जो भी करना है ठीक है ये देखो d3

play10:31

1 + 1 क्या हो गया तू तू को हम कैसे लिखने

play10:35

हैं मन में 1 0 यानी 0 यहां ए गया और जो

play10:38

करी है यहां ए गया तो d3 ने करी जेनरेट

play10:41

किया क्या किया वन तो यानी यहां पे

play10:44

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

play10:46

होगी और हमेशा याद रखना हमेशा ये पॉइंट

play10:49

याद रखना ऑग्ज़ीलियरी करी ये जितने भी

play10:52

फ्लैग जिसमें फ्लैग रजिस्टर में हर ऑपरेशन

play10:56

के बाद वैल्यू अपडेट होती है हर ऑपरेशन के

play10:59

बाद वैल्यू क्या होती है अपडेट होती है

play11:01

चाहे पहले ऑपरेशन ने करी की वैल्यू जीरो

play11:04

कर राखी थी ऑग्ज़ीलियरी का रही की वैल्यू

play11:06

जीरो कर राखी थी जो मर्जी कर राखी थी इसने

play11:09

क्या से नेट किया चाहे जीरो ही किया पहले

play11:11

जीरो थी अब भी जीरो की है तो आपको अपडेट

play11:14

करना है सिस्टम उसको अपडेट करेगा की भैया

play11:17

पहले जो मर्जी थी अब यह जीरो है ऐसी अगर

play11:20

वैल्यू पहले वन थी और अब आगे लेट जीरो तब

play11:22

तो आपको लगेगा की सर आप पहले बंटी है जीरो

play11:25

मतलब यह तो चेंज करेगा ऐसा नहीं है की वन

play11:27

से जीरो करेगा जीरो से वन नहीं करेगा अगर

play11:30

पहले जीरो थी तो अब जीरो आई तो जीरो को

play11:32

करेगा पहले ऑपरेशन में जो मर्जी हो करी हर

play11:36

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

play11:39

एक ऑपरेशन के बाद हर एक ओली ऑपरेशन के बाद

play11:41

जो है वो अपडेट होते हैं अब इसमें क्या

play11:44

जेनरेट की बात तो यानी ये 1 + 1 क्या हो

play11:46

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

play11:48

वन ए गया तो ये 1 + 1 क्या हो गया जीरो

play11:50

यमन तो रिजल्ट जो मर्जी है में आपको देखना

play11:53

है बस ये तो इसने क्या जेनरेट किया इसने

play11:55

यहां पे करी वन जेनरेट किया तो ऑक्सीडेशन

play11:57

और अगर आप बात करो की सर इसी क्वेश्चन में

play11:59

अगर आप करी वाली बात करो तो करी वाला तो

play12:02

से ही है ये देखो जी लास्ट में आपके पास

play12:04

00 क्या है जीरो यानी इसमें तो कुछ भी

play12:06

जेनरेट नहीं किया तो ये अपने आप में जो

play12:08

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

play12:10

रहेगी सी वे की वैल्यू यहां पे भी जीरो

play12:11

रहेगी लेकिन ये आपका कॉन्सेप्ट अब दी थ्री

play12:14

वाला समझ जो

Rate This

5.0 / 5 (0 votes)

相关标签
MicroprocessorFlag Register8085Tech EducationBinaryHexadecimalComputer ScienceProgrammingTech TutorialLogic Gates
您是否需要英文摘要?