I programmed in x8086 assembly this, but once run gave me the following problem:
Address Error: Instruction at 2024 accessing address 8201