Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!sun-barr!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: Data Segment blues Message-ID: <34530@apple.Apple.COM> Date: 5 Sep 89 04:00:35 GMT References: <355@tree.UUCP> Distribution: na Organization: Apple Computer Inc, Cupertino, CA Lines: 21 In article <355@tree.UUCP> guest@tree.UUCP (gray mouser) writes: > Does anyone here have any ideas on making sure a data segment is in 1 > bank and 1 bank only? [...] I don't know if you're going to like this solution, because it's *way* too easy. :-) Make your segment a CODE segment rather than a DATA segment. The system never lets a code segment cross a bank boundary, so this will do exactly what you want. (Just don't put your pseudo-CODE segment as the first code segment in your load file, or it'll get control when your application is launched.) --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 AppleLink--Personal Edition: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.