asm code and an inout function argument

Tim Matthews tim.matthews7 at gmail.com
Fri May 15 03:36:24 PDT 2009


On Fri, 15 May 2009 22:29:07 +1200, Robert Fraser  
<fraserofthenight at gmail.com> wrote:

> 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.


Why is it 'inout' and not 'ref' ?



More information about the Digitalmars-d mailing list