Code Scrappers


8086 PROGRAM FOR SUBSTRACTION


              MOV   AX, [4100]

              MOV   BX, [4102]

              SUB   AX, BX

              MOV   [4104], AX

              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.


              


Input And Output


                INPUT-->

                [4100] : 11

                [4101] : 22

                [4102] : 00

                [4103] : 00


                OUTPUT-->

                [4104] : 11

                [4105] : 22