Hello there,
Is there any way, considering fasm2 headers, to detect which statement is defined with format directive?
Teoretic example:
format ELF64
; some code that extract what was passed to format directive
; and outputs it to a 'c_format' variable
display "Current format is: ", `c_format, 10
Expected output: ELF64
format ELF64 executable 3
; same as above
display "Current format is: ", `c_format, 10
Expected output: ELF64 executable 3
Or something similar.
The main idea is to recognize format and its parameters in any form that can be used to control conditional code.
Thanks in advance.