Code Scrappers


8086 PROGRAM TO CONVERT BINARY TO GRAY CODE


            MOV   CX, #0F

            MOV   DI, #410F

            STD

            MOV   AL, DI

            MOV   BL, AL

            SHR   BL, 1

            XOR   AL, BL

            STOSB

            LOOP  4007

            INT   3



          


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 'E' for exambyte.

                >>  Type the memory address [eg. 4100].

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

                >>  Press 'G'.

                >>  Type 4000 and enter.

                >>  Type 'E'.

                >>  Type the address where the result is stored and press comma(,)


              


Input And Output


                INPUT-->

                [4100 - 410E] : 00 , 01 , 02 , 03 , 04 , 05 , 06 , 07

                                08 , 09 , 0A , 0B , 0C , 0D , 0E , 0F


                OUTPUT-->

                [4100 - 410E] : 00 , 01 , 03 , 02 , 06 , 07 , 05 , 04

                                0C , 0D , 0F , 0E , 0A , 0B , 09 , 08