Message board for the users of flat assembler.
> DOS > DQ and DT initializing
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:
MOV SI, numDT ; Where's numDT?
; Exit to DOS
MOV AX, 4c00h
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.
Can't Fasm initialize this kind of numbers?
|12 Jul 2004, 16:00||
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)
|12 Jul 2004, 16:52||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.
Website powered by rwasa.