Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!lll-tis!ptsfa!ihnp4!drutx!qwerty From: qwerty@drutx.ATT.COM (Brian Jones) Newsgroups: rec.games.hack,comp.sources.bugs Subject: Re: Help w/ NETHACK & MSC v4.0 Message-ID: <5191@drutx.ATT.COM> Date: Thu, 3-Sep-87 11:05:52 EDT Article-I.D.: drutx.5191 Posted: Thu Sep 3 11:05:52 1987 Date-Received: Sat, 5-Sep-87 11:09:46 EDT References: <616@hadron.UUCP> <3470@zen.berkeley.edu> <1079@bsu-cs.UUCP> Organization: AT&T, Denver Lines: 37 Summary: Microsoft uses 16-byte units WRONG! WRONG! WRONG! Xref: mnetor rec.games.hack:1352 comp.sources.bugs:262 In article <1079@bsu-cs.UUCP>, dhesi@bsu-cs.UUCP (Rahul Dhesi) writes: ) In article <3470@zen.berkeley.edu> iverson@cory.Berkeley.EDU.UUCP (Tim ) Iverson) writes (about setting a stack for hack.exe under MSDOS): ) ) >I tried stacks up to 64k, but I always ... ) ) A lot of things under MS-DOS are measured in units of 16-byte clicks. ) Thus, when you specify a stack of 0xa00 bytes, you may be really ) specifying 0xa00 clicks, which is 0xa000 bytes or 40 kilobytes. Since ) the stack segment can't exceed 64 kilobytes, specifying too large a ) stack will cause overflow. Unfortunately, the Microsoft linker doesn't ) seem to give a warning when this happens, and just seems to use some ) unknown value instead. The above 'information' is INCORRECT. Both the MASM and MSC manuals specify the /STACK:number option as specifying the number of BYTES to be allocated to the stack. Also, the 16-byte 'clicks' are normally referred to as PARAGRAPHS. ) ) Also note that, depending upon the memory model and the options you ) specify to the compiler, the stack may share a segment with static ) (non-stack) data, limiting the stack itself to less than a full ) segment. ) -- This is probably what's going on. ) Rahul Dhesi UUCP: {ihnp4,seismo}!{iuvax,pur-ee}!bsu-cs!dhesi Note: markings on included text changed to circumvent the silly software checks. -- Brian Jones aka {ihnp4,allegra}!{drutx}!qwerty @ AT&T-IS, Denver