1. mov 4, count
  2. mov dx, 0
  3.  
  4. loopstartlabel:
  5.  
  6. inc dx
  7. add dx, from_base_address # the new "from" memory address is put into cx
  8. load ax, cx
  9. add dx, to_base_address # the new "to" memory address is put into cx
  10. load bx, cx
  11. mov ax, bx
  12. add dx, to_base_address # the result is put into cx
  13. stor bx, cx # cx now holds the memory location for bx
  14. cmp dx, count
  15. jne loopstartlabel