8086 Instruction Set in Hindi | Types और Examples के साथ
8086 Instruction Set in Hindi | Types और Examples के साथ
8086 Instruction Set क्या होता है?
Instruction Set वह collection होता है जिसमें सभी instructions शामिल होती हैं जिन्हें 8086 microprocessor समझता और execute करता है।
हर instruction CPU को कोई specific task करने के लिए निर्देश देती है – जैसे data move करना, calculation करना, या jump करना।
8086 Instruction Set के मुख्य प्रकार
8086 instructions को उनके कार्य के आधार पर निम्नलिखित categories में divide किया गया है:
- Data Transfer Instructions
- Arithmetic Instructions
- Logical Instructions
- Control Transfer Instructions
- String Instructions
- Processor Control Instructions
1. Data Transfer Instructions
MOV destination, source→ Data को copy करता हैPUSH register→ Stack में value को डालता हैPOP register→ Stack से value निकालता हैXCHG reg1, reg2→ दो registers के बीच data exchange करता है
2. Arithmetic Instructions
ADD destination, source→ जोड़ता हैSUB destination, source→ घटाता हैMUL reg→ Unsigned multiplication करता हैDIV reg→ Unsigned divisionINC reg→ 1 से बढ़ाता हैDEC reg→ 1 से घटाता है
3. Logical Instructions
AND,OR,XOR→ Bitwise logical operationsNOT→ Bits को invert करता हैTEST→ Logical compare करता हैSHL/SAL,SHR,SAR→ Shift operations
4. Control Transfer Instructions
JMP label→ Unconditional jumpJE, JNE, JG, JL, etc.→ Conditional jumpsCALL→ Procedure को call करता हैRET→ Procedure से return करता है
5. String Instructions
MOVS/MOVSB/MOVSW→ String को copy करता हैLODS,STOS,SCAS,CMPS→ Memory-to-memory operationsREP→ Repeat prefix, instructions को repeat करता है
6. Processor Control Instructions
HLT→ Processor को रोक देता हैWAIT,NOP→ कोई operation नहीं करताSTC,CLC,CMC→ Flags को set/clear करता हैINT→ Interrupt initiate करता है
Instruction Example:
MOV AX, 0005H ; AX में 5 स्टोर करें ADD AX, 0003H ; AX = AX + 3 MOV BX, AX ; Result BX में स्टोर करें
निष्कर्ष (Conclusion)
8086 instruction set microprocessor को विभिन्न operations perform करने की capability देता है। ये instructions अलग-अलग category में होते हैं जो data transfer, arithmetic, logic, control, और string operations को manage करते हैं।
Instruction set को समझना assembly language programming का base होता है।