Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: mperdue@iquest.net (Mario Perdue) Newsgroups: scea.yaroze.beginners Subject: Re: memory Date: Tue, 03 Jun 1997 14:21:05 GMT Organization: SCEA Net Yaroze News Lines: 25 Message-ID: <339426fe.2259421@205.149.189.29> References: <33928AD8.4622@concentric.net> NNTP-Posting-Host: filter-hrtc1.nortel.net X-Newsreader: Forte Free Agent 1.1/32.230 On Mon, 02 Jun 1997 04:56:56 -0400, djinn666 wrote: >hi, > >i was just wondering if anyone could explain to me how memory allocation >for the ny works. i've been looking at sample batch- files and i see the >programmer d-loading tim,main,...ect to memory locations such as >"0x8000....ect". how do they know the size of their file?, how do they >know where to d-load it to? can some one please help. i've read the >whole userguid and still cant grasp the concept. > Djinn, The DOS command DIR will give you the size of a file. Once you have that, you just add an appropriate offset to the address to allow room for the entire file. This is one of the reasons I wrote TGA2IMG. I didn't want to mess with all these file offsets. My images are part of the code and can be anywhere the linker wants. Mario