Path: utzoo!attcan!utgpu!watmath!maytag!watstat!dmurdoch From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch) Newsgroups: comp.lang.pascal Subject: Re: Strange... The Turbo Pascal NEW command Message-ID: <336@maytag.waterloo.edu> Date: 2 Aug 89 12:47:08 GMT References: <845@dutrun.UUCP> <3534@mentor.cc.purdue.edu> <2110@csuna.csun.edu> Sender: daemon@maytag.waterloo.edu Reply-To: dmurdoch@watstat.waterloo.edu (Duncan Murdoch) Organization: U. of Waterloo, Ontario Lines: 16 In article <2110@csuna.csun.edu> abcscnuk@csuna.csun.edu (Naoto Kimura) writes: >It's >really annoying that I can't allocate a 64K block (I can only allocate >64K - 1 byte). It's really 64K - 15 bytes, and the reason is that the heap manager wants to be able to allocate it at any address, and still have it addressable within a single segment. If it gets allocated at ssss:$000F, then an offset of 64K - 1 would wrap around to the beginning of the segment. In any case though, the heap manager is fully documented, so you could write your own Getmem that wouldn't have this limitation, if you really need to. You'll have to disable range checking to be able to access all of it, but that's not a big deal. Duncan Murdoch