flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Mаt Quasar 11 Jul 2025, 13:42
Maybe should start defining our own section with its attribute, e.g.:
Code:
section '.code' code executable readable .flat RWX if I understand correctly is to create 1KB single-section EXE. |
|||
![]() |
|
Core i7 11 Jul 2025, 14:03
.code - is a macro from include "win32ax.inc", which itself adds the line you specified.
And in section ".flat" there are some GUIDs, and nothing else. |
|||
![]() |
|
Mаt Quasar 11 Jul 2025, 14:21
Your example code in post #1 as I compiled, showed 1536-byte double sections (".text" and ".idata") PE32.
There is no ".flat". |
|||
![]() |
|
macomics 11 Jul 2025, 15:06
I don't have any .flat section.
|
||||||||||||||||||||||||||||
![]() |
|
macomics 11 Jul 2025, 15:12
Here's what happens if you add a .data section
Code: format pe gui include 'win32ax.inc' ;//---------- .data msg db 'VirusTotal',0 .code start: invoke MessageBox,0,addr msg,0,0 invoke ExitProcess,0 .end start
Last edited by macomics on 11 Jul 2025, 15:31; edited 2 times in total |
||||||||||
![]() |
|
Core i7 11 Jul 2025, 15:15
It's strange... where did this section come from then?
![]()
|
|||||||||||||||||||
![]() |
|
macomics 11 Jul 2025, 15:19
I'm using the latest version from May 22nd and the incllude files for it.
ADD: So I made a file with a .flat section Code: format pe gui flatData db 'flat' include 'win32ax.inc' ;//---------- .code start: invoke MessageBox,0,'VirusTotal',0,0 invoke ExitProcess,0 .end start
|
|||||||||||||||||||||||||||||
![]() |
|
Core i7 11 Jul 2025, 16:35
macomics, Mаt Quasar, thank you.
I have many files in the "\equates" and "\api" folder that I added myself, apparently there is an error somewhere in them. Now I tried fasm "out of the box", and it also creates an exe without .flat-section. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.