CBtfix.doc Ver 1.0 (c) 1985 by Chrisdos. All rights reserved. CBterm/C64 (c) (tm) 1985 by Chrisdos. CBtfix.bas is a utility program to be used with files downloaded via the XMODEM format to remove the padding added to the file during transfer. The XMODEM protocol requires that all data be sent in blocks of 128 and if a file is not a multiple of 128 when it is sent, it will be padded to fill out the block. The xmodem protocol calls for ASCII NULLS ($00) to be added, or in some cases ASCII EOT (control-z $1A) are used. CBterm uses the control-z padding. In some rare cases, the extra padding overwrites some other part of memory when the file is loaded and causes the program to crash. If the file is first run through CBtfix.bas, the extra padding (either $00 or $1A) will be stripped from the end of the file. CBtfix.bas may be used on both SEQ and PRG files, and you are prompted for all information. To use CBtfix.bas, just load the program and run. (Do NOT alter any line of the basic program, as there is an ML routine appened to it, and altering the basic will cause it to crash.) You will be prompted for the name of the file you wish to work on. Enter the name and press return. You will then be prompted for Seq or Prg. You may enter either an S or a P, then press return. You then enter the name you wish to call the output file. And finally you are asked if the program you are converting is a BASIC program or no. (Enter Y or N.) CBtfix will then read in the file using a fast ML routine, strip the end of the file, and write it out to the new file. The question about IS THIS BASIC is required because all basic files end with 3 $00 markers, and if these were not put back, the converted program would loose its last line. The maximum file that CBtfix.bas can handle is 145 disk blocks long. After the file has been stripped, make sure the new file operates before destroying the old file. -Chrisdos
Amiga7878