; This file is a specialized form of filter to change any EOF codes ; in a text file into spaces so they are readable by XYWrite inpchar mov bx, 0 ;stdin mov cx, 1 ;read 1 byte mov ah, 3fh ;read file/device function mov dx, offset inbuff int 21h or ax, ax ;zero means no characters read jz eof mov al, inbuff ;get character read cmp al, 1ah jne norep mov al, 20h norep mov outbuff, al mov bx, 1 ;stdout mov cx, 1 ;write one byte mov dx, offset outbuff mov ah, 40h ;write file/device function int 21h jmps inpchar eof mov ah, 4ch int 21h inbuff db '1' outbuff db '2'