inline asm issues

Thomas Kuehne thomas-dloop at kuehne.cn
Thu Jun 1 14:33:50 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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


-----BEGIN PGP SIGNATURE-----

iD8DBQFEf2qi3w+/yD4P9tIRAnlLAKDHTKyexMg12XwBYvtrDA+9fQKXOACgtt5K
8EwKjCj5hbvG424WkVTv5Pw=
=LA5s
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-learn mailing list