16 bit exe?
- From: "Dave Turner" <not@dave>
- Date: Mon, 27 Feb 2006 14:55:31 +0800
Does anyone here know the formula for calculating the size of a 16 bit exe
based on IMAGE_DOS_HEADER alone?
I thought it was something like this but it's not quite right ...
BytesOnLastPage = IMAGE_DOS_HEADER.e_cblp
Pages = IMAGE_DOS_HEADER.e_cp
Size = (Pages * 512) + BytesOnLastPage
.
- Follow-Ups:
- Re: 16 bit exe?
- From: [jongware]
- Re: 16 bit exe?
- From: Dave Turner
- Re: 16 bit exe?
- Prev by Date: Re: Ideal computer language from scratch?
- Next by Date: Re: 16 bit exe?
- Previous by thread: what's the difference between IRET and IRETD?
- Next by thread: Re: 16 bit exe?
- Index(es):