Скачать Конвертор ASCII -> BIN

12.07.1994
Скачать файл (6,01 Кб)




{-----------------------------------------------------------------------}
{ MODULE                ASC_TO_BIN_CONVERTER                            }
{ PURPOSE               Convert the ASCII file to the binary file.      }
{ VERSION               1.10                                            }
{ DATE                  28-Oct-93                                       }
{ COMPANY               Freelance Software Engineer                     }
{ ADDRESS               Isakowskogo str, 4-2-30                         }
{                       Moscow, 123181                                  }
{                       USSR                                            }
{                       Tel. 007 (095) 944-6304                         }
{ COPYRIGHT NOTICE      Copyright (C) 1987-1993, Dmitry Stefankov       }
{ E-mail:   Internet:   wizard@npi.msu.su                               }
{ RESTRICTED RIGHTS     AVAILABLE ONLY FOR FREE DISTRIBUTION,           }
{                       NOT FOR COMMERCIAL PURPOSE                      }
{ OPERATING SYSTEM      MS/PC-DOS Version 3.30 or higher                }
{ COMPILER              Turbo Pascal Version 6.0                        }
{                       (Borland International Inc.) or compatible      }
{ ARGUMENTS                  -   input  stream                  }
{                           -   output stream                  }
{                              -   representation number base     }
{                              -   type of binary number          }
{                          -   # of extracted numbers/line    }
{ DESCRIPTION           1. Read from input stream                       }
{                       2. Convert ASCII to binary representation       }
{                       3. Write converted output stream                }
{-----------------------------------------------------------------------}
{
Problem description:    translate the ASCII hexadecimal,decimal, and
                        octal dump files to its binary equivalent
Data for application:   input:  file containing any dump like output
                        files from TDUMP, FDUMP and other
                        output:  binary file
Programming language:   Turbo Pascal (Version 6.0+)
Instructions to compile:        TPC  asc2bin.pas , where
                        TPC is a Turbo Pascal command-line compiler
Example to run:                 asc2bin.exe in.asc out.bin $10 2 8 , where
                          -> input filename
                          -> output filename
                        <$10>  -> hexadecimal representation base
                        <2>  -> quantity = word number
                        <8>  -> max. number of detected numbers
                        per each line
}