hi @all
Is there such a thing nasm to masm32 converter?
I am afraid there is no any specialized tool for this purpose, you should do the convertion manually.
i make self translate i have a problem
bc: resb BE_CONFIG_size <-- nasm
what is this in masm32 ?
bc BE_CONFIG_size <> ??
bc: is a label and is not a part of the conversion.
resb looks like a macro to me. You will need to find it and include it in the source.
Paul
bc db BE_CONFIG_size dup (?)
Although, if you define BE_CONFIG as a STRUCT, then you can just do
bc BE_CONFIG <?>
which will give space for a single BE_CONFIG struct
Quote from: PBrennickresb looks like a macro to me. You will need to find it and include it in the source.
resb means "Reserve Byte". It's similiar to how dup works:
SECTION .BSS
my_array: resb 2025
It's the same as:
.DATA?
my_array DB 2025 dup(?)
Quote from: TeddAlthough, if you define BE_CONFIG as a STRUCT, then you can just do
bc BE_CONFIG <?>
which will give space for a single BE_CONFIG struct
BE_CONFIG is a STRUCT. the *_size suffix is defined when a struct is created. Structures in NASM are done by an internal macro, and when they are created an equate is defined containing the size of the structure. This is to emulates the SIZEOF() MASM directive.
mov dword [wc + WNDCLASSEX.cbSize], WNDCLASSEX_size
is the same as:
mov wc.cbSize, SIZEOF(WNDCLASSEX)
Regards,
Bryant Keller
not exactly what you asked for, but maybe someone could adapt the Perl scripts to do what you want
http://rudy.mif.pg.gda.pl/~bogdro/inne/ and http://www.devoresoftware.com/nomyso/