TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: CHRIS BERKHOUT
from: SAM IZZO
date: 1997-12-24 15:14:00
subject: Memory Allocation

Hi Chris!
 CB> taken, there is 'not enough memory' for other things. Well behaved
 CB> programs will resize themselves (INT 21h, Function 4A - Modify
Ahh ok.  I looked through a few other programs that I had the source to, and 
they were doing this, but I couldn't exactly figure out how/why!
 CB> Allocated Memory Block (SETBLOCK)) to the size needed for CODE +
 CB> STACK + DATA. I guess that with .EXE's there is some kind of compiler
Ok, now, function 4a expects ES to point to the segment of the block of 
memory to resize.  Do I just set this to CS or something?
thanks!
Sam
--- FMail/386 1.20+
---------------
* Origin: Comms Barrier BBS +61.3.9585.1112, +61.3.9583.6119 (3:632/533)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.