flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 10 Sep 2023, 08:02
Looking at lines 797 & 798 in formats.inc we see this:
Code: add ecx,40h+111b and ecx,not 111b |
|||
![]() |
|
Tomasz Grysztar 10 Sep 2023, 09:36
It is as stated by PE specification:
Microsoft wrote: PE Header (aligned on 8-byte boundary) By the way, if this section of modern specification looks a bit confusing, it is because it is a mis-formatted figure that looked this way in the original PE.TXT file (which was the reference I used when writing fasm): Code: 1. Overview +------------------+ <--+ <----- Base of Image Header ¦ DOS 2 Compatible ¦ ¦ ¦ EXE Header ¦ ¦ +------------------¦ ¦ ¦ unused ¦ ¦ +------------------¦ ¦ ¦ OEM Identifier ¦ ¦ ¦ OEM Info ¦ ¦ ¦ ¦ ¦ DOS 2.0 Section ¦ Offset to ¦ ¦ (for DOS compatibility only) ¦ PE Header ¦ ¦ +------------------¦ ¦ ¦ DOS 2.0 Stub ¦ ¦ ¦ Program & ¦ ¦ ¦ Reloc. Table ¦ ¦ +------------------¦ <--+ ¦ unused ¦ +------------------¦ <--------- Aligned on 8 byte boundary ¦ PE Header ¦ +------------------¦ ¦ Object Table ¦ +------------------¦ ¦ Image Pages ¦ ¦ import info ¦ ¦ export info ¦ ¦ fixup info ¦ ¦ resource info¦ ¦ debug info ¦ +------------------+ Figure 1. A typical 32-bit Portable EXE File Layout PS. See also my PE tutorial for a detailed discussion of how a correct PE file should be arranged. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.