Thread overview
Inline Assembly
Dec 20, 2005
Tiago Gasiba
Dec 21, 2005
Walter Bright
Dec 21, 2005
Don Clugston
Dec 21, 2005
Tiago Gasiba
December 20, 2005
Dear all,

  In the document http://www.digitalmars.com/d/iasm.html, section "Operand Types" does not contain the keyword "qword ptr".
  This keyword is required even for 32bit machines. Some MMX instructions take arguments of this type!
  Did I miss something?


Best,
Tiago

-- 
Tiago Gasiba (M.Sc.) - http://www.gasiba.de
Everything should be made as simple as possible, but not simpler.
December 21, 2005
"Tiago Gasiba" <tiago.gasiba@gmail.com> wrote in message news:do8jcs$2mia$1@digitaldaemon.com...
> Dear all,
>
>  In the document http://www.digitalmars.com/d/iasm.html, section "Operand
> Types" does not contain the keyword "qword ptr".
>  This keyword is required even for 32bit machines. Some MMX instructions
> take arguments of this type!
>  Did I miss something?

I always found qword ptr confusing. You can use "long ptr" or "double ptr" depending on what is needed.


December 21, 2005
Walter Bright wrote:
> "Tiago Gasiba" <tiago.gasiba@gmail.com> wrote in message news:do8jcs$2mia$1@digitaldaemon.com...
> 
>>Dear all,
>>
>> In the document http://www.digitalmars.com/d/iasm.html, section "Operand 
>>Types" does not contain the keyword "qword ptr".
>> This keyword is required even for 32bit machines. Some MMX instructions 
>>take arguments of this type!
>> Did I miss something?
> 
> 
> I always found qword ptr confusing. You can use "long ptr" or "double ptr" depending on what is needed. 

BTW: On that page, "Operand types" still contains a reference to "extended ptr". This was changed in the compiler a long time ago. Spec should read "real ptr".

The only surviving trace of the old name "extended" is in the "de" pseudo-op. I wonder if it should be "dr"? I think that "de" is non-standard anyway, it is "dt" (stupid name) on most assemblers I've used.


December 21, 2005
Don Clugston schrieb:

> Walter Bright wrote:
>> "Tiago Gasiba" <tiago.gasiba@gmail.com> wrote in message news:do8jcs$2mia$1@digitaldaemon.com...
>> 
>>>Dear all,
>>>
>>> In the document http://www.digitalmars.com/d/iasm.html, section "Operand
>>>Types" does not contain the keyword "qword ptr".
>>> This keyword is required even for 32bit machines. Some MMX instructions
>>>take arguments of this type!
>>> Did I miss something?
>> 
>> 
>> I always found qword ptr confusing. You can use "long ptr" or "double ptr" depending on what is needed.
> 
> BTW: On that page, "Operand types" still contains a reference to "extended ptr". This was changed in the compiler a long time ago. Spec should read "real ptr".
> 
> The only surviving trace of the old name "extended" is in the "de" pseudo-op. I wonder if it should be "dr"? I think that "de" is non-standard anyway, it is "dt" (stupid name) on most assemblers I've used.

Thanks for the repply.
Please note that in the same document "long ptr" is not mentioned - the HTML doc needs to be updated!

Best,
Tiago

-- 
Tiago Gasiba (M.Sc.) - http://www.gasiba.de
Everything should be made as simple as possible, but not simpler.