brouhaha / tapeutils

GNU General Public License v2.0
22 stars 4 forks source link

Add option to read20 to extract all bits from all files #10

Closed larsbrinkhoff closed 4 years ago

larsbrinkhoff commented 4 years ago

The current version of read20 irreversibly mangles and drops bits if forced to extract binary files.

The current options are:

I propose to add a new option, say -b, to:

  1. Extract all files.
  2. Extract 36-bit words preserving all bits, using "five characters with last bit swizzled".
  3. Leave CR LF alone.
larsbrinkhoff commented 4 years ago

Bit swizzling.

swiz

larsbrinkhoff commented 4 years ago

Do I make myself clear?

swiz2

larsbrinkhoff commented 4 years ago

CC @eswenson1 @lisper @Devon7 @atsampson @kcr

eswenson1 commented 4 years ago

Go for it. Picture is nice and clear.

larsbrinkhoff commented 4 years ago

Pull request submitted.

I verified listing the contents of XX:\-STINK.-IPAK-.9 which was the actual use case for extracting binary files from a TOPS-20 tape.