Path: chuka.playstation.co.uk!news From: Chris Chadwick Newsgroups: scee.yaroze.programming.libraries Subject: Re: SsVabTransfer locks up! Date: Fri, 17 Jul 1998 00:43:05 -0700 Organization: PlayStation Net Yaroze (SCEE) Lines: 17 Message-ID: <35AF0089.5956@dial.pipex.com> References: <359E82E9.1134@dial.pipex.com> <35a17582.898850637@news.scea.sony.com> <35A5E635.6368@dial.pipex.com> <35AC619C.3A76@dial.pipex.com> <35ADC9B6.64475D04@scee.sony.co.uk> NNTP-Posting-Host: userb061.uk.uudial.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.02 (Win95; I; 16bit) James Russell wrote: > > Chris Chadwick wrote: > > > > Now, I dont know much about this inline assembler stuff but the above code > > (now that I look at it!) seems to be setting the stack pointer register > > to the BOTTOM of the DCache memory. I'd assumed the stack would 'grow' > > downwards in memory, not up. > > 0x1f8003f0 is one word less than the top address of D-Cache (which is 1024 bytes long). That's what > the stack is being set to in your code, so it is the _top_ of the D-Cache. You're right. Sorry, I had a bit of a brainstorm! However, why set it to 0x1f8003f0 and not 0x1f8003ff (the top)? For alignment? -Chris