flat assembler
Message board for the users of flat assembler.

flat assembler > Main > dt HexConstant

Author
Thread Post new topic Reply to topic
10110111



Joined: 15 Aug 2015
Posts: 4
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:
myValue: dq 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


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.