{ LIBRARY SYSTEM UTILITIES }
{ MODULE ASCIIZ_TO_ASM_CONVERTER }
{ FILE NAME ASCZ2ASM.PAS }
{ PURPOSE Convert the binary file }
{ (ASCII MESSAGES TERMINATED BY NULL) }
{ to an assembler format 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 }
{ RESTRICTED RIGHTS AVAILABLE ONLY FOR FREE DISTRIBUTION, }
{ NOT FOR COMMERCIAL PURPOSE }
{ COMPILER Turbo Pascal Version 6.0 }
{ (Borland International Inc.) or compatible }
{ ARGUMENTS <infile> - input stream }
{ <outfile> - output stream }
{ <maxbytes> - max # of chars per one line }
{ <dispofs> - display file offset of string }
{ DESCRIPTION 1.Read from input stream }
{ 2.Write ASM-format output stream }
{-----------------------------------------------------------------------}
{
Problem description: extract ASCIIZ strings to more readable form
Agreements and terminology: ASCIIZ string - string + NUL (ASCII 0)
Data for application: input: file containing ASCIIZ strings
output: Microsoft MASM compatible format file
Instructions to compile: TPC ascz2bin.pas , where
TPC is a Turbo Pascal command-line compiler
Example to run: ascz2bin.exe infile.asc outfile.asm 33 yes ,
where
<infile.asc> -> input filename
<outfile.asc> -> output filename
<33> -> max. bytes per single ASCIIZ string
<yes> -> add file offset for each ASCIIZ string
}
|