News:

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

Question about undefined symbol while compiling

Started by marcus, March 04, 2010, 04:06:46 PM

Previous topic - Next topic

clive

Quote from: marcus on March 05, 2010, 08:07:13 PM
If I use the FLAT model, this line does not compile ( error A2108: use of register assumed to ERROR) ...
   mov eax,fs:[ecx]

You need an "assume FS:nothing" line, to stop the assembler from catching this.

-Clive

        .486
        .MODEL FLAT

        .DATA

        .CODE

start:

        ASSUME  FS:nothing

        mov     eax,fs:[ecx]

        END     start
It could be a random act of randomness. Those happen a lot as well.

marcus

Thanks :)

Quote from: clive on March 05, 2010, 08:33:53 PM
Quote from: marcus on March 05, 2010, 08:07:13 PM
If I use the FLAT model, this line does not compile ( error A2108: use of register assumed to ERROR) ...
   mov eax,fs:[ecx]

You need an "assume FS:nothing" line, to stop the assembler from catching this.

-Clive

        .486
        .MODEL FLAT

        .DATA

        .CODE

start:

        ASSUME  FS:nothing

        mov     eax,fs:[ecx]

        END     start


marcus

And a thanks for your time to all of you who helped.