News:

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

nasm to masm32 converter?

Started by remus2k, November 01, 2006, 03:47:06 PM

Previous topic - Next topic

remus2k

hi @all

Is there such a thing nasm to masm32 converter?

Vortex

I am afraid there is no any specialized tool for this purpose, you should do the convertion manually.

remus2k

i make self translate i have a problem

bc:    resb BE_CONFIG_size  <-- nasm

what is this in masm32 ?

bc  BE_CONFIG_size <>   ??

PBrennick

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
The GeneSys Project is available from:
The Repository or My crappy website

Tedd

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
No snowflake in an avalanche feels responsible.

Synfire

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

jack

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/