asm code and an inout function argument

Robert Fraser fraserofthenight at gmail.com
Fri May 15 03:29:07 PDT 2009


Vladimir A. Reznichenko wrote:
> I have a function:
> 
> void test (inout uint a)
> {
> 	asm
> 	{
> 		mov a, 0x25;
> 	}
> }
> 
> The trouble is that the function's call doesn't change the a variable.
> Any ideas?

Inout variables are pointers.



More information about the Digitalmars-d mailing list