Output of file : KOPY.ASM contained in archive : TASMSWAN.ZIP
%TITLE "Copy Input to Output"
cr EQU 13
lf EQU 10
exitCode db 0
inFile dw 0
outFile dw 0
oneByte db 0
prompt db cr,lf,'Erase this file? (y/n) ', 0
diskFull db cr,lf,'*** ERROR: disk is FULL', 0
notes db cr,lf,' KOPY copies all bytes from one file to a new file'
db cr,lf,'as a demonstration of file read/write methods'
db cr,lf,'in assembly language. The program can be modified'
db cr,lf,'to process data on its way to the output file,'
db cr,lf,'although this version makes no changes to the'
db cr,lf,'information in the input file. Use the program by'
db cr,lf,'supplying two file names: the first name is the'
db cr,lf,'file you want to read; the second is the new file'
db cr,lf,'that you want KOPY to create:',cr,lf
db cr,lf,' KOPY