NAME NewLoadSeg -- Improved version of loadseg for stacksizes (v36) SYNOPSIS seglist = NewLoadSeg(file, tags) D0 D1 D2 BPTR NewLoadSeg(STRPTR, struct tagitem *) seglist = NewLoadSegTagList(file, tags) D0 D1 D2 BPTR NewLoadSegTagList(STRPTR, struct tagitem *) seglist = NewLoadSegTags(file, ...) BPTR NewLoadSegTags(STRPTR, ...) FUNCTION Does a loadseg on a file, and takes additional actions based on the tags supplied. Clears unused portions of Code and Data hunks (as well as BSS hunks). (This also applies to internalloadseg() and loadseg()). NOTE to overlay users: NewLoadSeg() does NOT return seglist in both D0 and D1, as loadseg does. the current ovs.asm uses loadseg(), and assumes returns are in D1. We will support this for loadseg() ONLY. INPUTS file - Filename of file to load tags - pointer to tagitem array RESULT seglist - Seglist loaded, or NULL BUGS No tags are currently defined. SEE ALSO loadseg(), unloadseg(), internalloadseg(), internalunloadseg()