View mode: basic / threaded / horizontal-split · Log in · Help
June 01, 2006
inline asm issues
I'm generating the following inline asm:

asm
{
	naked					;
	mov EAX, dword ptr [0xFFFFFFFF]		;
}

when it compiles, it compiles as the following:
00402230     B8 FFFFFFFF    MOV EAX,0FFFFFFFF

when I want this:
00402230     A1 FFFFFFFF    MOV EAX,DWORD PTR DS:[0FFFFFFFF]

what am I doing wrong?
June 01, 2006
Re: inline asm issues
akcom schrieb am 2006-06-01:
> I'm generating the following inline asm:
>
> asm
> {
> 	naked					;
> 	mov EAX, dword ptr [0xFFFFFFFF]		;
> }
>
> when it compiles, it compiles as the following:
> 00402230     B8 FFFFFFFF    MOV EAX,0FFFFFFFF
>
> when I want this:
> 00402230     A1 FFFFFFFF    MOV EAX,DWORD PTR DS:[0FFFFFFFF]
>
> what am I doing wrong?

# 
# mov EAX, dword ptr DS:[0xFFFFFFFF];
# 

Thomas
Top | Discussion index | About this forum | D home