flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Main > dt HexConstant

Author
Thread Post new topic Reply to topic
10110111



Joined: 15 Aug 2015
Posts: 4
dt HexConstant
I'm trying to define some ten-byte x87 values in hex and fasm seems to not support this. I have to work around like follows:

Code:

myValuedq 0x97ba1234436a63f6
         dw 0x7fdc

         fld tbyte [myValue]



instead of much simpler (would-be syntax)

Code:

myValue dt 0x7fdc97ba1234436a63f6

        fld [myValue]



Could support for this be implemented in fasm?
Post 04 Apr 2016, 04:31
View user's profile Send private message Reply with quote
Trinitek



Joined: 06 Nov 2011
Posts: 257

Manual wrote:
...and dt accepts the word and quad word value separated with colon, the quad word is stored first. The dt directive with single expression as parameter accepts only floating point values and creates data in FPU double extended precision format.


Code:
dt 0x7fdc : 0x97ba1234436a63f6

That should do it.
Post 04 Apr 2016, 06:17
View user's profile Send private message Reply with quote
10110111



Joined: 15 Aug 2015
Posts: 4
Ah, never noticed that. Thanks.
Post 04 Apr 2016, 06:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.