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 किया गया है:

  1. Data Transfer Instructions
  2. Arithmetic Instructions
  3. Logical Instructions
  4. Control Transfer Instructions
  5. String Instructions
  6. 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 division
  • INC reg → 1 से बढ़ाता है
  • DEC reg → 1 से घटाता है

3. Logical Instructions

  • AND, OR, XOR → Bitwise logical operations
  • NOT → Bits को invert करता है
  • TEST → Logical compare करता है
  • SHL/SAL, SHR, SAR → Shift operations

4. Control Transfer Instructions

  • JMP label → Unconditional jump
  • JE, JNE, JG, JL, etc. → Conditional jumps
  • CALL → Procedure को call करता है
  • RET → Procedure से return करता है

5. String Instructions

  • MOVS/MOVSB/MOVSW → String को copy करता है
  • LODS, STOS, SCAS, CMPS → Memory-to-memory operations
  • REP → 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 होता है।

Related Post

Comments

Comments