This is assembly language program for 8086 microprocessor using MASM software:
Read this post on totalecer.blogspot.com