Hi, CoDers

If I write in my source

mov eax, DWORD PTR CS:[0124h]

It is assembled currectly, but if i change CS to FS, I got:

skeleton.asm(294) : error A2108: use of register assumed to ERROR

I solved this using ASSUME

mov eax, DWORD PTR FS:[0124h]

My question:

What means "USE OF REGISTER ASSUMED TO ERROR" ???? :confused:
Posted on 2004-02-13 06:12:23 by Opcode
It means use "assume fs:nothing" at the beginning of your code. If I am not wrong, by default fs is assumed to error
Posted on 2004-02-13 06:33:33 by roticv
I think it is because the fs register is disable by default.If you want to use it in you code,you should declare it like this:
assume fs:nothing
Posted on 2004-02-13 06:50:20 by Rey
Yes, by default it is assume fs:error, because fs is reserved for OS functions, and this keeps programmers from accidentally using it. I think the same goes for gs.
So it's just a safeguard.
Posted on 2004-02-13 12:16:29 by Henk-Jan
Thanks, I got the message!!!
Posted on 2004-02-13 14:00:12 by Opcode