Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   8085 need help (http://www.go4expert.com/forums/8085-need-help-t29977/)

dantedmc 21Jan2014 20:44

8085 need help
 
Assume that a binary number is stored in memory location 8301H.

Write 8085 Assembly Language Program to perform the conversion depending upon the value stored in memory location 8300H.
Code:

OPERATION        MEMORY
LOCATION (H)        DATA (H)        TYPE OF DATA
BINARY TO UNPACKED
BCD CONVERSION        8300        00        Decision data
        8301        F3        Binary number (Input data)
        8302                Unpacked BCD3  (Result 1)
        8303                Unpacked BCD2 (Result 2)
        8304                Unpacked BCD1 (Result 3)
BINARY      TO      GRAY
CODE CONVERSION        8300        FF        Decision data
        8301        F3        Binary number (Input data)
        8302                Gray code (Result)

Perform the above task by writing a main program and two subroutines.

Main program can be used to perform initialization, get the input data in accumulator, to call the subroutines depending upon the decision data and to store the results.
Subroutine 1 can be used to perform binary to BCD conversion.
Subroutine 2 can be used to perform binary to gray code conversion.


All times are GMT +5.5. The time now is 20:36.