Algorithm for 16 bit numbers subtraction with borrow:
1. Load 0000H into CX register (for borrow)
2. Load the first number into AX(accumulator)
3. Load the second number into BX register
4. Subtract BX with Accumulator AX using SUB instruction
5. Jump to 7 ,if no borrow
6. Increment CX by 1
7. Move data from AX(accumulator) to memory
8. Move data from CX register to memory
9. Stop