flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > macro to detect format |
Author |
|
rCX 07 Jul 2021, 01:43
Is there a way to write a macro that conditionally generates code based on the format eg, ELF, PE?
|
|||
07 Jul 2021, 01:43 |
|
revolution 07 Jul 2021, 08:19
if we can make it a narrow test to detect just an executable variant of PE or ELF and assume it is just using the default settings then I think this might work:
Code: format pe ;format elf executable if rva $$ and 0xfff = 0 display 'is pe',13,10 else display 'is elf',13,10 end if |
|||
07 Jul 2021, 08:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.