8085 microprocessor practical instruction set

Discussion in 'Programmer's Corner' started by RIG, Mar 9, 2006.

  1. RIG

    Thread Starter New Member

    Mar 9, 2006
    1
    0
    THIS IS THE INSTRUCTION TO PROGRAM AND TO MADE A FLOWCHART OF IT.

    HERE IT IS : DISSASEMBLE THE CONTENT OF LOCATION 2015HEX INTO TWO FOUR BIT SECTIONS AND STORE THEM IN LOCATIONS 2016HEX MS-N AND 2017HEX LS-NIBBLE RESPECTIVELY. PLEASE CAN SOMEONE GIVE SOME HELP WITH THIS ASSIGNMENT.

    THANKS IN ADVANCE
     
  2. pebe

    AAC Fanatic!

    Oct 11, 2004
    628
    3
    I don't know about the 8085 but I should imagine the procedure is the same as for the micros I have progrmmed.

    1. Copy the contents of 2015 into 2016 and 2017
    2. AND the contents of 2017 with 00001111 to leave just the LS nibble
    3. AND the contents of 2016 with 11110000 to leave the MS nibble. It's unclear whether the MS nibble needs to be in the LS nibble position. If so, either use the insruction 'SwapNibbles' if available, or do a right shift 4 times.
     
  3. Papabravo

    Expert

    Feb 24, 2006
    10,154
    1,795
    Code ( (Unknown Language)):
    1.  
    2.     LXI  H,2015h  ; 2015 -> HL
    3.     MOV A,M
    4.     MOV B,A     ; Save a copy
    5.     INX  H     ; 2015 + 1 = 2016
    6.     ANI  0F0h
    7.     MOV M,A     ; store upper nibble
    8.     INX  H     ; 2016 + 1 = 2017
    9.     MOV A,B     ; Restore copy of [2015]
    10.     ANI  0Fh
    11.     MOV M,A     ; store lower nibble
    12.  
     
  4. Mazaag

    Senior Member

    Oct 23, 2004
    255
    0
    whats a nibble ?? lol :D
     
  5. pebe

    AAC Fanatic!

    Oct 11, 2004
    628
    3
    A byte is 8 bits.
    A nibble is 4 consecutive bits at either end of the byte.

    For example, for the byte 10110001, 1011 is the upper nibble and 0001 is the lower nibble.
     
  6. manupep

    New Member

    Nov 18, 2006
    1
    0
    if you have the complete instruction set of 8085mp usable for lab programs with brief introduction . please post
     
  7. Papabravo

    Expert

    Feb 24, 2006
    10,154
    1,795
Loading...