This program uses the following instructions which I haven't used in the other ones. Use of LHLD <16bit memory> instruction to load the 16 bit number stored in two separate 8 bit memory locations to the H and L Register. SHLD <16bit memory> for storing ans. Use of DAD rp instruction to add the contents of the H-L pair with the specified Register pair. Use of XCHG instruction to swap values of DE pair and HL pair. PROGRAM:
|