inline asm issues

akcom CppCoder at gmail.com
Thu Jun 1 05:59:10 PDT 2006


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?



More information about the Digitalmars-d-learn mailing list