XSTRIP.DOC

(2 KB) Pobierz
XSTRIP.DOC

XSTRIP.BIN will remove the CTRL-Z, $1A, CHR$(26), XMODEM padding characters
from the end of downloaded files. It will process an entire disk of files, or
a selected number of files individually.  XSTRIP.BIN is a compiled version
for the C64 only.  XSTRPB.BIN is the BASIC version for the C64 and the C128.
Both programs can be "loaded and run."

This new XSTRIP.BIN was modeled after Wayne Schmidt's original XSTRIP.BIN   
after it was found that the latter overwrites a data byte with a CHR$(13), $0D, 
thereby causing problem with many programs.

The program searches for the end of a file and looks at the last data byte. If
it equals a CTRL-Z, it will decrement and check the next data byte until it
finds a non CTRL-Z character and rewrites the end-of-file (EOF) pointer to
point to this character.  If the CTRL-Z's continue into the previous sector,
the program will continue to process the new sector and rewrite the EOF
pointer in it. If the number of CTRL-Z's exceeds 127, the selective mode (the
process all mode will abort and not change anything) will ask you if you wish
to continue processing.  If you answer no, the program will abort the process
for the present file and continue on the next file.  A yes answer will
continue the process. If the CTRL-Z's exceed 2 disk sectors, the program
aborts the process.

The display is as follows:

CURRENT T&S:            NEXT T&S:
WORKING T&S:            LAST T&S:
OLD BYTES:              NEW BYTES:

CURRENT T&S: will display which track and sector (T&S) it is looking at.
NEXT T&S: displays which T&S is next in line to be searched. When the last T&S
is reached, it will display the EOF pointer.
LAST T&S: indicates where the original EOF pointer is.
WORKING T&S: displays which T&S is being processed for CTRL-Z's.
OLD BYTES: indicates the number of bytes of the file before stripping.
NEW BYTES: indicates the number of bytes after stripping. If the file has not
been stripped, this will equal the old bytes.

Various messages are displayed, including when a file has been stripped or
not, when the CTRL-Z's exceed 127 bytes and/or continue into the previous
block, and which T&S the new EOF pointer is being written to.

Some files use CTRL-Z's as part of their data, so you should always strip a
copy (not the original) and make sure it works. If you think the files have
been padded with $00 and not $1A, then use CBTFIX.BIN in the CBMCOM CBTERM
data library.

XSTRPB.BIN is the original, listable, rem commented basic version of
XSTRIP.BIN, for those of you who would like to examine and/or modify the basic
code.

If you encounter any problems with XSTRIP.BIN, please contact me (messages,
email, homing pidgeons, etc.). I sincerely hope the program is of great
benefit (and no headache) to all users.

XSTRIP.BIN is the compiled version for the C64 only.

XSTRPB.BIN is the BASIC    version for the C64 and the C128.


                                         Albert Hernandez
                                         CID 72467,1004



Zgłoś jeśli naruszono regulamin