NASM - The Netwide Assembler

Please login or register.

Login with username, password and session length
Advanced search  

News:

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

ben321

  • Jr. Member
  • *
  • Offline Offline
  • Posts: 86
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.
Logged

Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2102
Re: So what do these pseudo commands actually do?
« Reply #1 on: January 04, 2017, 01:07:51 AM »

Floats, I guess.
Logged

Bryant Keller

  • Forum Moderator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 360
    • 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.