Instruction format in hindi - इंस्ट्रक्शन फॉरमेट क्या है

 Instruction format in hindi :-

एक instruction operation code (OPCODE) और operand से बना है। instructions का पहला भाग performance किए जाने वाले कार्य को specified करता है जिसे OPCODE कहा जाता है और instructions का दूसरा भाग operated होने वाला डेटा है, और इसे operand कहा जाता है। अब, instructions का operation विभिन्न रूपों में हो सकता है जैसे कि 8-बिट या 16-बिट डेटा, 8-बिट या 16-बिट पता, रजिस्टर या मेमोरी पता आदि। इसलिए, instruction format अलग-अलग instructions में भिन्न हो सकता है। (एक instruction format एक instruction के बिट्स का लेआउट है, इसके component fields के reference में)। 

Types of Instruction format:-

Instruction format in hindi

1. Zero-Address Instructions
2. One-Address Instructions
3. Two-Address Instructions
4. Three-Address Instructions

1. Zero-Address Instructions:-

Instruction format in hindi

PUSH A i.e., insert the content of A into the stack

2. One-Address Instructions:-

Instruction format in hindi
example,
ADD B i.e. Accumulator <- Accumulator + B

3. Two-Address Instructions:-

Instruction format in hindi
example,
ADD A, B i.e. A <- A+B

4. Three-Address Instructions:-

Instruction format in hindi
example,
ADD A, B, C i.e. A <- B+C

Instruction Length:-

यह मेमोरी साइज, memory organization, bus structure, processor complexity और प्रोसेसर की गति पर निर्भर करता है। अधिक prosperity और flexible बनाने के लिए, असेंबली लैंग्वेज प्रोग्रामर अधिक ऑपकोड, अधिक ऑपरेंड और अधिक एड्रेसिंग मोड चाहता है, क्योंकि अधिक ऑपकोड और अधिक ऑपरेंड प्रोग्राम लिखने का एक आसान तरीका प्रदान करते हैं और अधिक एड्रेसिंग मोड कुछ को लागू करने के लिए बेहतर लचीलापन प्रदान करते हैं। कार्य करता है। लेकिन, समस्या स्थान के साथ है, क्योंकि अधिक ऑपकोड, ऑपरेंड और अधिक एड्रेसिंग मोड के लिए अधिक स्थान की आवश्यकता होती है, और इसलिए हम कहते हैं कि एक Business बंद है। फिर से, एक और महत्वपूर्ण बिंदु यह है कि क्या instructions की लंबाई मेमोरी ट्रांसफर की लंबाई के बराबर होनी चाहिए या ट्रांसफर की लंबाई से अधिक होनी चाहिए।

Allocation of Bits:-

ओपकोड और पता फ़ील्ड के लिए instructions के बिट्स कैसे allotted करें। यदि ओपकोड भाग के लिए अधिक संख्या में बिट्स allotted किए जाते हैं, तो अधिक संख्या में ओपकोड हो सकते हैं, लेकिन एड्रेसिंग के लिए उपलब्ध बिट्स की संख्या कम कर देता है। इसलिए, यहां बिट्स के allotted में भी समझौता किया गया है।
  • एड्रेसिंग मोड की संख्या।
  • ऑपरेंड की संख्या। 
  • रजिस्टर सेट में रजिस्टर की संख्या। 
  • Commemoration को referenced करने के लिए address range।


टिप्पणियाँ