flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
VEG
AFAIK, it is not possible with FASM1. But it will be possible to write such "section" macros for the FASMG. I have no working code, but the idea of generation of data non-consequentially and insertion of the result in a specific place of the file was demonstrated here. I think that this technique can be used for collecting machine code for sections from different places of the source file also.
|
|||
![]() |
|
Tomasz Grysztar
MUFOS wrote: I was wondering how I switch between sections. Writing "section '.data' data readable writeable" different places (between code sections) just create a new data section. VEG wrote: AFAIK, it is not possible with FASM1. But it will be possible to write such "section" macros for the FASMG. I have no working code, but the idea of generation of data non-consequentially and insertion of the result in a specific place of the file was demonstrated here. I think that this technique can be used for collecting machine code for sections from different places of the source file also. |
|||
![]() |
|
revolution
MUFOS wrote: I was wondering how I switch between sections. Writing "section '.data' data readable writeable" different places (between code sections) just create a new data section. |
|||
![]() |
|
MUFOS
revolution wrote:
How? |
|||
![]() |
|
revolution
Have a look at the MSCOFF.ASM example included in the download. Add all your sections in any order you please. Assemble the file to a .obj file. Then use your linker to make the final .exe file.
|
|||
![]() |
|
rugxulo
revolution wrote: Then use your linker to make the final .exe file. In other words, this is specific to your linker, so check your docs: Linker Options - MSDN - VS2015 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.