Because I come from NASM to FASM and the FASM documentation is a bit short, could you translate
the following NASM expressions to FASM ?
[section .drectve info]
Joined: 24 Aug 2004
Location: MACS J1149 Lensed Star 1
You can use the data directive to specify the predefined sections. Check out the PE specs for which section numbers relate to which data type.
data <section_number> ;stuff
From the fasm manual:
data directive begins the definition of special PE data, it should be followed by one
of the data identifiers (export, import, resource or fixups) or by the number of data
entry in PE header. The data should be defined in next lines, ended with end data
directive. When fixups data definition is chosen, they are generated automatically and
no more data needs to be defined there. The same applies to the resource data when
the resource identifier is followed by from operator and quoted file name – in such case
data is taken from the given resource file.
Because my C compiler, (wcc32), was made to emit plain NASM code,
I modified it to emit plain FASM code.
This is the reason for the above questions.
The only problem with FASM was the absence of includelib that
MASM use or [section .drectve info] that NASM use.
But I managed it for FASM, like: section '.drectve' data readable linkinfo
The above Informs the linker that the current module should be linked with a library.
section '.drectve' data readable linkinfo
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum