flat assembler
Message board for the users of flat assembler.
Index
> Projects and Ideas > fasm 2 as a set of scripts and headers for fasmgGoto page Previous 1, 2, 3 |
| Author |
|
|
Tomasz Grysztar 26 Jul 2026, 08:41
vityacv wrote:
Code: push? [29] x86.push_instruction [105] Custom error: immediate value out of signed range. With fasm you could define a constant with a different representation, like here: Code: F = dword 1.0 push F Code: virtual
dd 1.0
load F dword from $$
end virtual
push F Code: format PE64 include 'macro/inline.inc' inlinemacro __float32__(value*) virtual dd float (value) load return: dword from $$ end virtual end inlinemacro push __float32__(1.0) |
|||
|
|
vityacv 04 Aug 2026, 11:51
What about using it directly for cleaner approach?
Code: db 0x68 ;push dd 1.0 also there is issue with fixups, they are filled with 0's (fasm 1 handles it correctly) Code: format pe64 at 0x1000000000000000 entry Main Main: jmp Test1 align 8 data fixups end data align 4096 Test1: mov rax,Main ret |
|||
|
|
Tomasz Grysztar 04 Aug 2026, 14:37
vityacv wrote: also there is issue with fixups, they are filled with 0's (fasm 1 handles it correctly) |
|||
|
| Goto page Previous 1, 2, 3 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.