News:

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

Simple Question

Started by test, April 14, 2009, 01:15:40 AM

Previous topic - Next topic

test

I just started trying to program masm asm as of today and ran into a problem. Everytime I try to use something like...

mov eax, dword ptr fs:[30h]
or
mov eax, fs:[30h]

I get an error and the error is usually on the next line which is blank. I have tried all kinds of combinations to get this to work and nothing. I think masm just doesn't like the fs section?

drizz

Masm default assumption for FS is error (assume fs:error) - don't ask me why.
Use "assume fs:nothing" to clear it.

assume fs:nothing
mov eax,fs:[NT_TIB.Self]
mov eax,[eax].TEB.Peb


I usually put "assume fs:nothing" in all my project templates.
The truth cannot be learned ... it can only be recognized.

test

 :U Thank you Much Appreciated :bg