Author Topic: So what do these pseudo commands actually do?  (Read 11055 times)

Offline ben321

  • Full Member
  • **
  • Posts: 185
So what do these pseudo commands actually do?
« on: January 03, 2017, 11:54:44 PM »
In the documentation it says "DT, DO, DY and DZ do not accept numeric constants as operands."

So how do you use them? They are supposed to be used for putting in initialized data (as with DB, DW, and DD), but if they don't accept constants, then how do you use them. Sadly the documentation does not mention this, leaving the end user (like me) scratching his head, trying to figure out how to use them.

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: So what do these pseudo commands actually do?
« Reply #1 on: January 04, 2017, 01:07:51 AM »
Floats, I guess.

Offline Bryant Keller

  • Forum Moderator
  • Full Member
  • *****
  • Posts: 360
  • Country: us
    • About Bryant Keller
Re: So what do these pseudo commands actually do?
« Reply #2 on: January 28, 2017, 07:06:16 AM »
I think this should say "integer constants" instead. It supports floating point constants, just not integer (or hex) ones.

About Bryant Keller
bkeller@about.me