Hi, CoDers
If I write in my source
It is assembled currectly, but if i change CS to FS, I got:
I solved this using ASSUME
My question:
What means "USE OF REGISTER ASSUMED TO ERROR" ???? :confused:
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
ASSUME FS:NOTHING
mov eax, DWORD PTR FS:[0124h]
My question:
What means "USE OF REGISTER ASSUMED TO ERROR" ???? :confused:
It means use "assume fs:nothing" at the beginning of your code. If I am not wrong, by default fs is assumed to error
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
assume fs:nothing
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.
So it's just a safeguard.
Thanks, I got the message!!!