5.1.5 · D1 · HinglishInstruction Set Architecture (ISA)

Foundationsx86 architecture overview

2,023 words9 min read↑ Read in English

5.1.5 · D1 · Hardware › Instruction Set Architecture (ISA) › x86 architecture overview

Is page mein assume kiya gaya hai ki tumhe kuch nahi aata siwaay ginaai ke. Hum har wo symbol build karenge jo parent x86 overview use karta hai, ek ek brick karke.


1. Bit — ek akela switch

Socho ek light switch wall par. Uske exactly do states hain. Wahi ek bit hai. Is poore subject mein baaki sab kuch sirf in switches ki bahut saari lines hain ek row mein.

Figure — x86 architecture overview

2. Byte aur chezon ki "width"

Figure s01 dobara dekho: 8 switches side by side milke ek byte banate hain. Parent ka phrase "8086 was 16-bit" ka matlab sirf yeh hai ki uski main storage rows 16 switches lambi thi (2 bytes). "64-bit" matlab 64 switches lambi (8 bytes).

width patterns sabse bada value
8 (byte) 256 255
16 65 536 65 535
20 1 048 576 (1 MB) 1 048 575
32 ~4.3 billion ~4.3 billion − 1
64 ~ bahut bada

3. Hexadecimal — switch-rows ka ek shorthand

Figure — x86 architecture overview

4. Bits ko left shift karna — "×16" actually kya hai

Figure — x86 architecture overview

5. Register — CPU ke andar ek named switch-row

Socho ek labelled box jo 64 switches hold karta hai. Parent ki poori table (RAX/EAX/AX/AL) ek aisi box describe kar rahi hai jise tum alag window-sizes se dekh sakte ho:

  • AL = sabse neeche wale 8 switches,
  • AX = sabse neeche wale 16,
  • EAX = sabse neeche wale 32,
  • RAX = sab 64.
Figure — x86 architecture overview

6. Offset, Segment, Address — memory ko point karna

Ab parent ke key formula ka har symbol define ho gaya hai: Ise padhо: segment-row ko 4 jagah left slide karo (×16), phir offset-row add karo. Dono pieces 16 switches hain; shift ek ko 20-switch address ke top mein fit karne ke liye uthata hai. Ab yahan kuch mysterious nahi hai.


7. Opcode, prefix, instruction — bytes se bane commands


Prerequisite map

Bit = one switch

Byte and bit-width

Patterns = 2 to the n

Hexadecimal shorthand

Left shift = times 2 to the k

Registers RAX EAX AX AL

Segment Offset Address

Instruction and Opcode bytes

x86 architecture overview

Har foundation parent x86 overview mein flow karta hai; wahan koi bhi cheez aisa brick use nahi karti jo humne yahan nahi rakhi. Inhe master karne ke baad ARM Architecture se compare karo.


Equipment checklist

Right side cover karo aur khud ko test karo. Agar koi line surprise kare, to uska section dobara padho.

Bit kya hai?
Ek switch jo ya to 0 (off) hai ya 1 (on).
Ek byte mein kitne bits hote hain?
8 bits.
bits mein kitne distinct patterns fit hote hain?
.
Hardware ko 1 MB ke liye 20-bit address kyun chahiye?
Kyunki , isliye 20 switches har byte ko naam de sakte hain.
Ek hex digit kitne bits represent karta hai?
4 bits (ek nibble), kyunki .
ko decimal number mein likho.
.
kya karta hai, aur yeh kiske barabar hai?
Switches ko 4 jagah left slide karta hai; ke barabar hai.
Kya "Segment × 16" ek runtime multiply hai?
Nahi — yeh 4 bits ka ek left shift hai, wiring se hota hai, essentially free.
Register kya hai?
CPU ke andar ek named switch-row, sabse fast storage jo maths unit reach kar sakta hai.
RAX ke comparison mein AL kya hai?
Usi 64-bit register par sabse neeche ke 8 bits (ek chhoti window).
Opcode kya hai?
Woh byte(s) jo kehte hain ek instruction kya karta hai — uska verb.
x86 instructions 1 se 15 bytes tak kyun vary karte hain?
Kyunki constants instruction ke andar stored hote hain, isliye bade constants ise lamba banate hain.