Code Scrappers


8086 PROGRAM TO CONVERT HEXADECIMAL TO ASCII


            MOV   AL, [4100]

            MOV   AH, AL

            AND   AL, #OF

            CALL  4016

            XCHG  AL, AH

            MOV   CL, #04

            ROR   AL, CL

            AND   AL, #OF

            CALL  4106

            INT   3

            CMP   AL, #0A

            JB    401C

            ADD   AL, #07

            ADD   AL, #30

            RET



          


Process for execution on 8086 kit



                >>  Switch on the power supply.

                >>  Press A two times.

                >>  Type 'SG 0'.

                >>  Type DA 4000.

                >>  '@' Symbol will appear.

                >>  Type the code and press 'N' each time for new line.

                >>  After typing the code come to new line.

                >>  Press 'shift+1' and enter.

                >>  Press 'EX'.

                >>  Press 'E' followed by memory address [eg. 4100].

                >>  Press comma(,) and then give the input.

                >>  Press 'G'.

                >>  Type 4000 and enter.

                >>  Press 'R' followed by 'E'

                >>  The result is obtained in hexadecimal.


              


Input And Output


                INPUT-->

                [4100] : 4B

                OUTPUT-->

                42  34