Hi!
19-Июн-2004 11:30 [EMAIL PROTECTED] (Eduardo Casino) wrote to
[EMAIL PROTECTED]:
>> This is reason, why I wrote COM2EXE and convert CTMOUSE.COM into .EXE.
>> This adds only 32 bytes of header, so, overhead is small, but safety and
>> convenience for user is much increased. You may get my COM2EXE from
>> CuteMouse package or wrote your own COM2EXE utility. When converting .COM
>> into .EXE, my utility says in .EXE header, than program requires 64k of
>> memory, unless you use -s option, which specifies how much of space should
>> be allocated for data and stack areas. For CTMOUSE I specify 512 bytes,
>> which includes zero data area and 512 bytes of stack.
EC> Thanks a lot for the info. Is this equivalent to adding a harcoded EXE
EC> header, as described in the nasm manual?
I don't know, what described in NASM manual, but different converted
.COM programs will have different headers, because header contains
information about (loaded) file size. Also, with -s option my COM2EXE
reduces minalloc/maxalloc and SP fields. For example:
______________O\_/_________________________________\_/O______________
EXEMAP v1.0 Copyright (c) 2000 by Arkady V.Belousov
>Pages to load/last page size: 000C/0055h (12 pages/85 bytes)
Relocation table offset/size: 001C/0000h (28 bytes/0 dwords)
Header size: 0002h (2 para)
> Min/max memory to allocate: 0020/0020h (32/32 para)
CS:IP: FFF0:0100h
> SS:SP: FFF0:193Eh
Checksum: 0000h
Overlay #: 0000h (0)
> File size: 00001655h (5717 bytes)
Header size: 00000020h (32 bytes)
> Program image size: 00001635h (5685 bytes)
> Required memory to load: 00001940h (6464 bytes)
_____________________________________________________________________
O/~\ /~\O
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel