Skip to main content
Addressing modes of microprocessor 8086



8086



The way of specifying data to be operated by an instruction is known as addressing modes. This specifies that the given data is an immediate data or an address. It also specifies whether the given operand is register or register pair.
Types of addressing modes:

  1. Register mode – In this type of addressing mode both the operands are registers.
    Example:
    MOV AX, BX
    XOR AX, DX
    ADD AL, BL
  2. Immediate mode – In this type of addressing mode the source operand is a 8 bit or 16 bit data. Destination operand can never be immediate data.
    Example:
    MOV AX, 2000
    MOV CL, 0A
    ADD AL, 45
    AND AX, 0000
    Note that to initialize the value of segment register an register is required.
    MOV AX, 2000
    MOV CS, AX 
  3. Displacement or direct mode – In this type of addressing mode the effective address is directly given in the instruction as displacement.
    Example:
    MOV AX, [DISP]
    MOV AX, [0500]
  4. Register indirect mode – In this addressing mode the effective address is in SI, DI or BX.
    Example:
    MOV AX, [DI]
    ADD AL, [BX]
    MOV AX, [SI] 
  5. Based indexed mode – In this the effective address is sum of base register and index register.
    Base register: BX, BP
    Index register: SI, DI 
    The physical memory address is calculated according to the base register.
    Example:
    MOV AL, [BP+SI]
    MOV AX, [BX+DI]
  6. Indexed mode – In this type of addressing mode the effective address is sum of index register and displacement.
    Example:
    MOV AX, [SI+2000]
    MOV AL, [DI+3000]
  7. Based mode – In this the effective address is the sum of base register and displacement.
    Example:
    MOV AL, [BP+ 0100]
  8. Based indexed displacement mode –In this type of addressing mode the effective address is the sum of index register, base register and displacement.
    Example:
    MOV AL, [SI+BP+2000] 
  9. String mode – This addressing mode is related to string instructions. In this the value of SI and DI are auto incremented and decremented depending upon the value of directional flag.
    Example:
    MOVS B
    MOVS W 
  10. Input/Output mode – This addressing mode is related with input output operations.
    Example:
    IN A, 45
    OUT A, 50 
  11. Relative mode –
    In this the effective address is calculated with reference to instruction pointer.
    Example:
    JNZ 8 bit address
    IP=IP+8 bit address 

Comments

Popular posts from this blog

C in Hindi : File Handling Introduction to C File Handling  एक file bytes की sequence होती है। File किसी भी data को store करने के लिए यूज़ की जाती है। Files को permanent storage के लिए यूज़ किया जाता है। जब आप किसी program को run करवाते है और उसका output देखने के बाद उसे बंद कर देते है तो उसका output वहीँ remove हो जाता है । यदि आप इस output को permanently store करना चाहते है तो C language के file handling feature को यूज़ कर सकते है। C file handling का यूज़ यँही ख़त्म नहीं होता है। यदि program में दिए जाने वाला input भी बहुत अधिक है तो किसी human द्वारा इसे enter कराने के बजाय आप file का यूज़ कर सकते है। इससे program automatically file से ही input ले लेगा। C language के द्वारा आप files से related ये काम कर सकते है। Existing files को open कर सकते है और नयी files create कर सकते है।  किसी भी program के output को file में store कर सकते है।  File के द्वारा किसी भी program में input भी दे सकते है।        सभी operatio...
Programming model of microprocessor 8085 prograaming modal  chhah saamaany prayojan rajistar 1.8085 mein chhah saamaany prayojan rajistar hote hain jaise b, ch, d, ai, h, l. 2. mote rajistar ko 16-bit opareshan (beesee, de, echel) karane ke lie rajistar jode ke roop mein joda ja sakata hai. sanchayakarta rajistar 1. yah akshar a dvaara pahachaana jaata hai. 2. yah alu ka ek hissa hai. 3. isamen 8-bit deta storej hai. 4. yah ankaganit aur taarkik sanchaalan karata hai. 5. kisee opareshan ka parinaam sanchaayak mein sangraheet kiya jaata hai. dhvaj panjee 1. yah bhee alu ka ek hissa hai 2.8085 mein paanch jhandon ke naam hain -jiro jhanda (z) -kaary dhvaj (chy) -sain phlaig (es) -parivartan dhvaj (p) sahaayak kairee phlaig (esee) 3. in jhande dhvaj rajistar mein paanch phlip-phlop hain. 4. ek ankaganit / tark sanchaalan ka nishpaadan in jhandon ko set ya reeset kar sakata hai. 5. sophtaveyar nirdeshon ke maadhyam se jhande (set ya reeset) ka pareeks...
Architecture of Microprocessor 8086 in Hindi  8086 vaastukala ko do bhaagon mein vibhaajit kiya gaya hai: 1. nishpaadan ikaee (eeyoo) 2.bas intarafes yoonit (beeaeeyoo) -biu nirdesh praapt karata hai, memoree aur i / o port se deta padhata hai, memoree aur i / o port par deta likhata hai. -eeyoo ne us nirdesh ko nishpaadit kiya hai jo pahale hee beeaeeyoo dvaara praapt kiya ja chuka hai. -beeaeeyoo aur eeyoo alag-alag kaam karate hain. bas intarafes yoonit (biu) pata peedhee: isamen 20 bit edres jenaret karane ke lie samarpit adar hota hai. khand rajistar: isamen chaar 16-bit segament rajistar hain: 1. kod segament (seees) 2. deta segament (deees) 3. staik segament (eses) 4. ekstra segament (ais)  -8086 1mb memoree ko 64k bait tak ke segament mein baanta gaya hai. -8086 kisee samay mein chaar khandon (memoree ke 1 em bait ke bheetar 256 ke baits) ko seedhe sambodhit kar sakata hai. -vigyaapan vaanchhit khandon ko ingit karan...