> KEYB.EXE 11,446 06-24-12
> leaves, when running, a huge memory hole. at least with only HIMEM
> loaded. note the HUGE memory hole behind KEYB
the problem is
function MCBAlloc ( para: word ) : word;
var allocs,f,m: word;
mov ah, $58 { set alloc strategy }
mov al, 1
xor bh,bh
>>> mov bl, $41
int $21
using 'best fit' is virtually ALWAYS a bug for a TSR
solution 1) use some buffer in the program, at the end of the TSR
code. use/resize this buffer as needed
solution 2) use
mov bl, $82 last fit, try high then low memory
this allocates memory from top, but doesn't create holes.
unfortunately I'm not able to compile this; awaiting the maintainer
to fix this bug
Tom
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel