Auto-translated
I can't verify the correctness of the test.com program. I don't know assembly language well.
Write a program in C/Pascal/Delphi that opens a file as text and copies the data where it needs to go. In the case of Pascal/Delphi, these are standard tools like readln, etc. I've already done this, and it's not difficult.