flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 04 Oct 2005, 20:18
fasm doesn't just treat floats as double words, it chooses the right conversion depending on context - compare "dd 5.0" with "dq 5.0" and "dt 5.0".
You must have been using "push 5.0" in 16-bit mode, since in 32-bit it works. In 16-bit mode the default size for push is 16-bit and there is no 16-bit floating point format - thus the error. Try "pushd 5.0" or "push dword 5.0". |
|||
![]() |
|
ravenX 04 Oct 2005, 20:46
I've now got it. I'm writing Win32 program and include one ASM file into another. I usually try to compile this standalone file for syntax checking. I've quite forgotten about default use16 mode. The main program compiles right.
Sorry for wasting your time... |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.