Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Interrupts & Ports - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

        DOS .EXE-file head (EXE)

        Offset Size   Contens
        -----------------------------------------------------------------
        00-01  Bytes  EXE-file signature - always 4Dh 5Ah
        02-03  Word   Lenght of image remainder (modulus 512)
        04-05  Word   Length of image in pages (div 512)
        06-07  Word   Number of relocation table items.
        08-09  Word   Header size in paragraps (used to locate
                      beginning of the load module in the file)
        0A-0B  Word   Minimum number of paragraphs required above the
                      loadet program
        0C-0D  Word   Maximum number of paragraphs required above the
                      loadet program
        0E-0F  Word   Offset of stack-segment in loadfile
        10-11  Word   Stack offset (value to place in SP after load)
        12-13  Word   File-checksum - negative sum of all the words
                      in the file, ignoring overflow.
        14-17  DWord  Initial CS:IP (offset from PSP)
        18-19  Word   Offset of relocation table within file
        1A-1B  Word   Overlay number (0 for resident part)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson