Setting class variable from inline assembly

pmoore pmoore_member at pathlink.com
Sat May 20 08:51:02 PDT 2006


Hi,

It seems that within inline assembly I can read a class variable but I can't set
it. Is this a bug or is there a good reason for this?

uint myvar;

void main()
{
}

class AClass
{
uint myvar2;

this()
{
asm
{
mov EAX,myvar;
mov myvar,EAX;  // this is fine

mov EAX,myvar2; // no problem reading
mov myvar2,EAX;	// doesn't compile - bad type/size of operands 'mov'
}
}
}





More information about the Digitalmars-d-bugs mailing list