[comp.sys.apple] Transferring other file types in ProDos Kermit

TMPLee@DOCKMASTER.ARPA (08/12/87)

Since I eventually got around to answering myself a question I asked
several months ago, it seemed only appropriate to post it for others.

Kermit 3.75 (and presumably the later ones too) is only "designed" to
handle four file types:  TXT, BIN, INT, and BAS, the standard DOS 3.3
types.  As far as I can tell, the only type it does something funny with
is the TXT type -- it converts from ordinary ASCII to Apple's hi-bit
ASCII, but it may also do something special with INT and BAS.

To get it to handle something else (in my case, WordPerfect's $A0 type)
one can fool it into using any file type code you want for the binary
mode.  To do this you need to change two bytes in the program.

At location $4995 there is a string A9 06 CD
  (LDA #06
   CMP ...)

At location $4A2A there is A9 06 8D
  (LDA #06
   STA ...)

(the locations will presumably differ in other versions, but my guess is
that the same sequence will be there someplace

The first is where it is checking that the file type of a file you are
about to transmit is what you say it should be, the second is where it
is setting the file type of a file it is about to receive.

If you want it to handle any other file type, change the 06 (the ProDos
file code for binary files) in both locations to whatever other file
type you want.  (in my case, $A0 for WordPerfect files.)  Save the
changes.  Then whenever you want to handle that file instead of TXT go
to the kermit command mode and SET FILE-TYPE BINARY.

(Of course, if you want to handle binary, or yet another type, you'll
have to change the two locations again.)

(No guarantees, comments welcome)

TMPLee@DOCKMASTER.ARPA