Date :-
Practical No. 7(f)
Aim:
 Write a assembly language code in GNU 8085 to perform find add or even
 number.
Program:
     Address           Label              Mnemonics             Hexcode           Comment
 F000                                LDA 8000H             3A,00,80       Load the num from
                                                                          memory
 F003                                ANI 01H               E6, 01         AND o1H with ACC
 F005                                IZ EVEN               CA,00,F0       If z=0 it is even
 F008                                MVI A, 01H            3E, 01         Load 01H to odd
 F00A                                IMP STORE             C3, OF,FO      Jump to store
 F00D             EVEN               MVI A,FFH             3F ,FF         Load to store
 F00F             STORE              STA 8050 H            32,50,80       Store the result
 F012                                HLT                   76             Terminate
Observation:
Input:         F.I/P       Address                Data          Output:
                                     :                     :              F.i/p
Address                  data
                               8000                   15                                      :
:
                                 :                     :                                  8000
01
                                                                                                  :
:
Page
Date :-
Sec i/p:              Sec o/p
Address        Data             Address   Data
    :            :                 ;        :
 8000          2C               8000       11
     :          :                 :         :
Observation:
Input:                          Output:
                                                 Page