flat assembler
Message board for the users of flat assembler.
Index
> Windows > Switch between sections? |
Author |
|
VEG 29 Apr 2017, 15:00
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.
|
|||
29 Apr 2017, 15:00 |
|
Tomasz Grysztar 29 Apr 2017, 15:44
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. |
|||
29 Apr 2017, 15:44 |
|
revolution 29 Apr 2017, 16:40
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. |
|||
29 Apr 2017, 16:40 |
|
MUFOS 29 Apr 2017, 20:04
revolution wrote:
How? |
|||
29 Apr 2017, 20:04 |
|
revolution 30 Apr 2017, 05:44
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.
|
|||
30 Apr 2017, 05:44 |
|
rugxulo 02 May 2017, 00:30
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 |
|||
02 May 2017, 00:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.