Re: LBAcache devel BUGFIX and improved release

"Arkady V.Belousov" <[email protected]> Tue, 12 Nov 2002 09:26:29 +0300 (MSK)
Newsgroups gmane.os.freedos.devel,gmane.spam.detected
Message-ID <[email protected]>
X-Comment-To: Eric Auer

Hi!

12-=EE=CF=D1-2002 00:26 [email protected] (Eric Auer) wrote to fd-dev@top=
ica.com:

EA> I will add proper size checking of available RAM soon, but in a way tha=
t
EA> fits both .com and .sys version

     Note: internally CTMOUSE is a .COM file, but it _converted_ into .EXE
by my external utility COM2EXE (which you may also use). [There trouble tha=
t
TASM/MASM languages not allows to have full control on linkage: you can't
force given segments order, nor you can't compile code with _assumed_ offse=
t
not equal to offset inside segment/group, nor you can't force programs
targeted as .EXE to get PSP as part of code segment.]

     After applying COM2EXE you add to executable 32 bytes, but this allows=

you to skip a lot of code to check available memory: required memory for
_BSS and stack (which you ask with COM2EXE option) pointed in .EXE header
and checked by DOS itself. [NB: Don't forget to make stack not lesser than,=

say, about 256-512 bytes.]

EA> (sorry folks, I do not love combined .exe
EA> format that can be both application and driver).

     Moreover, UPX not supports combined .EXE+.SYS executables.