flat assembler
Message board for the users of flat assembler.

Index > DOS > DQ and DT initializing

Author
Thread Post new topic Reply to topic
avcaballero



Joined: 02 Feb 2004
Posts: 191
Location: Madrid - Spain
avcaballero
Hi all

If I am not wrong

18446744073709551d = 4189374BC6A7EFh

If I try to initialize this number directly with DT compiler gives me an error, I must use a dot. Then watching it with debug I can see that hex number compiled is not right:


use16
ORG 100h
MOV SI, numDT ; Where's numDT?
; Exit to DOS
MOV AX, 4c00h
INT 21h

numDT DT 18446744073709551.0 ; =4189374BC6A7EFh

; debugging with debug:
; C:\Alfonso\Codigos>debug DTBugCF.com
; -u 100,106
; 0CF7:0100 BE0801 MOV SI,0108
; 0CF7:0103 B8004C MOV AX,4C00
; 0CF7:0106 CD21 INT 21
; -d 108,10E
; 0CF7:0100 00 DE 4F 8D 97 6E 12 ..O..n.
; -q




Can't Fasm initialize this kind of numbers?

Thank you
Post 12 Jul 2004, 16:00
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
fasm can initialize only 64-bit integers
DT is 80-bit, and therefore cannot be initialized directly with an integer, only as a floating point value (that is why adding .0 works)

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 12 Jul 2004, 16:52
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.