News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

New batch for fda

Started by ToutEnMasm, July 09, 2005, 04:06:48 PM

Previous topic - Next topic

ToutEnMasm

I have search the FDA.TXT in the forum because it's not on the package

It's more easy to use FDA with this text,so i made another batch
                                ToutEnMasm


@echo off
SET DATA=nums
REM label name must not exceed 12 characters
SET LABEL= Ilostthename


fda %DATA%.txt %DATA%.obj %LABEL% 4
\masm32\bin\link -lib %DATA%.obj /out:%DATA%.lib
ECHO *******************************************************
ECHO don't forget to add
ECHO          includelib %DATA%.lib
ECHO           EXTERNDEF %LABEL%:DWORD
ECHO IN your source file
ECHO *
ECHO *******************************************************

pause

goto end


FDA.EXE
-------

DESCRIPTION
-----------
FDA is a tool to create a COFF object module that contain user specified
data from a disk file. This allows the direct inclusion of the contents of
a disk file without any required conversion to assembler notation. The
disk file type is not specified and it can be either text or binary data.

ARGUMENTS
---------
    1. Source file name
    2. Target COFF object module name
    3. Data label name
    4. Optional alignment of the data

NOTES
-----
The file name(s) must be enclosed in quotations if they contain spaces.
The data label name must not exceed 12 characters.
The optional alignment of the data defaults to 4 bytes if it is not specified
or if an invalid alignment is specified. Alignment range is 1 to 8192 in
powers of 2. 1 2 4 8 16 32 64 etc ....

RECOMMENDATION
--------------
It is a lot easier and more convenient to use if you make the object module
into a library, the syntax for doing this is as follows,

\masm32\bin\link -lib "yourfilename.obj" "/out:yourlibname.lib"

You can of cource include the object module in any library you make for the
project you are work on.

USAGE
-----
To use the library with your data in it, use the normal MASM "includelib"
keyword to include the library. To access the data in your module, you use
the EXTERNDEF syntax as follows before the code in your application,

EXTERNDEF MyData:DWORD

MyData is the data label name you supply to FDA.EXE when you create the module.


:end