Path: chuka.playstation.co.uk!news From: Chris Chadwick Newsgroups: scee.yaroze.programming.libraries Subject: Re: SsVabTransfer locks up! Date: Fri, 17 Jul 1998 01:02:39 -0700 Organization: PlayStation Net Yaroze (SCEE) Lines: 39 Message-ID: <35AF051F.708C@dial.pipex.com> References: <359E82E9.1134@dial.pipex.com> <01bdafbf$5c177f20$f2e832a2@gbain.wav.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) George Bain wrote: > > Hi Chris, > > Post some code so we can have a look. > > Regards, > > George@SCEE Hi George OK, you should be able to duplicate the error by using the following code. Simply add it to one of your own progs (that has sound and uses SsVabTransfer() ) by renaming your prog's main() as MainProper()... long savesp; int main() { //* Change SP to scratchpad area... __asm__ volatile ("sw $29,(savesp)"); __asm__ volatile ("la $29,0x1f8003f0"); //* Run program... MainProper(); //* Restore SP... __asm__ volatile ("lw $29,(savesp)"); return 0; } With me, SsVabTransfer() fails but if I comment out the __asm__ lines it works fine! Any ideas? -Chris