NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: mik on May 18, 2010, 04:00:58 AM

Title: Pseudo-Instructions: do - What's the meaning ?
Post by: mik on May 18, 2010, 04:00:58 AM
hi, everyone

Pseudo-Instructions: do
What's the meaning ?

thx
Title: Re: Pseudo-Instructions: do - What's the meaning ?
Post by: Bryant Keller on May 18, 2010, 04:58:09 AM
do - define oword
an oword is an 8-byte data type.

Code: [Select]
SECTION .data
blah do 0

is the same as

Code: [Select]
SECTION .data
blah db 0,0,0,0,0,0,0,0
Title: Re: Pseudo-Instructions: do - What's the meaning ?
Post by: mik on May 18, 2010, 06:11:39 AM
do - define oword
an oword is an 8-byte data type.

Code: [Select]
SECTION .data
blah do 0

is the same as

Code: [Select]
SECTION .data
blah db 0,0,0,0,0,0,0,0

i know..
but, NASM Manual said:  DT, DO and DY do not accept numeric constantsas operands.

and nasm occur error:

error: integer suppild to a DT, DO or DY instruction
Title: Re: Pseudo-Instructions: do - What's the meaning ?
Post by: mik on May 18, 2010, 06:15:22 AM
AND the question:
DT, DO, DY  -- how to use?

thx
Title: Re: Pseudo-Instructions: do - What's the meaning ?
Post by: Keith Kanios on May 18, 2010, 06:37:57 AM
With Floating Point (http://www.nasm.us/doc/nasmdoc3.html#section-3.4.6).
Title: Re: Pseudo-Instructions: do - What's the meaning ?
Post by: mik on May 18, 2010, 06:46:40 AM
With Floating Point (http://www.nasm.us/doc/nasmdoc3.html#section-3.4.6).
thinks

and  DY ?
Title: Re: Pseudo-Instructions: do - What's the meaning ?
Post by: Keith Kanios on May 18, 2010, 10:27:47 PM
and  DY ?

I would imagine the same, except being 256-bit for the YMM registers... where-as DO is 128-bit.