Skip to main content

Data Transfer Group Instruction Set of 8085 Microprocessor

Data Transfer Group of 8085 Microprocessor

    • MOV r1, r2
      • This means the data of register - 2 will move to register - 1
                                        Example - MOV A, B
    • MOV r, M
      • This means the data stored in ((H - L)) will move to specified register.
                                        Example - MOV B, M
    • MOV M, r
      • This means the data in specified register will move to ((H-L)).
                                        Example - MOV M, B
    • MVI r, data
      • This means the given data will move to specified register immediately.
                                        Example - MVI B, 05
    •  MVI M, data 
      • This means the given data will move to ((H-L)) pair register immediately.
                                        Example - MVI M, 05
    • LXI rp, data 
      • Here 16 bit data will move to entered register pair.
                                        Example - LXI B, 2345
                                                           23 ⇢  B
                                                           45 ⇢   C
    • LDA addr
      • This means that data stored in entered address will load in Accumulator.
                                        Example - LDA 4345
                                                          ((4345)) ⇢  (A)
    • STA addr
      • This means the data in Accumulator will store in the entered address.
                                        Example - STA 4345
                                                           (A) ⇢  ((4345))
    • LHLD addr 
      • Data in given address will load into register 'L' and data in next address of given address will load into register 'H'.
        • Example - LHLD 4200  // This is a command//
                                                           (4200) ⇢ L
                                                           (4201) ⇢ H
    • SHLD addr
      • Data in register 'L' will load into the given address and data in register 'H' will load into the next address of given address
        • Example -  SHLD 4200 //This is a Command//
                                                           L ⇢   (4200) 
                                                           H ⇢   (4201)
    • LDAX rp 
      • The register pair points to a memory location. The data in that memory location will copy to Accumulator.
                                    Example - LDAX B
                                                      ((BC)) ⇢ (A)
    • STAX rp
      • The data in Accumulator will copy to the memory location pointed by register pairs.
        • Example - STAX B
                                                        (A) ⇢  ((BC))
    • XCHG 
      • The contents in HL and DE pair will exchange.
        • Example - HL - 1234
                                                          DE - 4561 
                                                    After execution of the instruction, the result is 
                                                          HL - 4561
                                                          DE - 1234

Comments

Popular posts from this blog

Arithmetic Group Instruction Set of 8085 Microprocessor | ADD, ADC, ACI, ADI, DAD, SUB, SBB, SUI, DCR, INR, INX, DCX instruction

Arithmetic Group of 8085 Microprocessor ADD r The data in Accumulator and entered register will get added and the result will copy to Accumulator                                      Example -  ADD B                                                     (A) + (B)  ⇢   (A)     ADD M The data in Accumulator and data in the memory location pointed by HL pair will get added and the result will copy to Accumulator.                                  Example -  ADD M          ...

Logical Group Instruction Set of 8085 Microprocessor | ANA, ANI, ORA, ORI, XRA, XRI, CMA, CMC, STC, CMP, RLC, RAL, RRC, RAR instruction examples

Logical Group These Logical group instructions are used in the 8085 Microprocessor program. In this article, you would get the instructions with example. In some sections, referring images are also provided to make your understanding crystal clear. ANA r Here the data of r AND (Logical AND) with the data of Accumulator and the result will store in Accumulator.                                  Example -   ANA B                                                      (B) ⋀ (A) ⟶ (A)                                          ...

Chuda Upma | How to Prepare Chuda Upma | Chuda Upma Recipe without onion | Quick Snacks Recipe

Chuda Upma  👨‍🏫Prep Time: 5 Min  🥣Cook Time: 10 Min 🍱Total Time: 15 Min 🍽Course: Snacks 🥗Cuisine: Indian Ingredients Chuda (Poha) - 100 gm Peanuts  - 20 gm Carrot - 1  Tomato - 1 Cabbage - 50 gm Turmeric Powder Ginger - 1/3 of a Inch Salt Cumin - 1/2 tsp Curry Leaves  Curry Masala  Preparation Put a pan on medium flame and add refine oil (Recommended: Sunflower Oil). Add cumin, ginger paste and curry leaves. Cook it. Now, add tomato and cook. Then, add peanuts and cook till crisp. Then, add grated cabbage, sliced carrot. Now sprinkle turmeric powder, half cup of water and cook it on high flame till the cabbage gets soft. Allow the process for 7 to 8 minutes. Put the chuda or poha in a bowl and allow it to get soaked. After the cabbage and carrot get soft, add the poha(chuda) in it. Mix it very well. Sprinkle curry masala on it and mix it very well. You can add tomato sauce and chili sauce of vegan (optional). Cook it for 2 minutes.     ...