8085 microprocessor practical instruction set

Thread Starter

RIG

Joined Mar 9, 2006
1
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
 

pebe

Joined Oct 11, 2004
626
Originally posted by RIG@Mar 9 2006, 10:17 PM
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
[post=14826]Quoted post[/post]​
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.
 

Papabravo

Joined Feb 24, 2006
14,382
Originally posted by pebe@Mar 9 2006, 06:43 PM
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.
[post=14827]Quoted post[/post]​
Rich (BB code):
    LXI  H,2015h  ; 2015 -> HL
    MOV A,M
    MOV B,A     ; Save a copy
    INX  H     ; 2015 + 1 = 2016
    ANI  0F0h
    MOV M,A     ; store upper nibble
    INX  H     ; 2016 + 1 = 2017
    MOV A,B     ; Restore copy of [2015]
    ANI  0Fh
    MOV M,A     ; store lower nibble
 

pebe

Joined Oct 11, 2004
626
Originally posted by Mazaag@Mar 11 2006, 05:48 AM
whats a nibble ?? lol :D
[post=14861]Quoted post[/post]​
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.
 
Top