Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Darco Newsgroups: scee.yaroze.programming.codewarrior,scea.yaroze.programming.codewarrior Subject: TestCard(); Problems Date: Wed, 09 Sep 1998 07:39:44 -0400 Organization: SCEA News Server Lines: 41 Message-ID: <35F66900.4DA4E141@bigfoot.com> NNTP-Posting-Host: 137.dialup.datasys.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; U) Xref: chuka.playstation.co.uk scee.yaroze.programming.codewarrior:340 scea.yaroze.programming.codewarrior:343 Has anyone had any problems using TestCard() in CodeWarrior? I just recently bought a new memory card (Hey, it was a black memory card. I just HAD to have it to match my black playstation. :) and I wanted to find out how a new, unformatted card behaved. So I write this really small program: (No this isn't my programing style, I just wrote it quickly to see how it works) -- START OF CODE -- #include main() { int slot0, slot1; printf("Memory Card Test\n"); slot0 = (long)TestCard((long)0); slot1 = (long)TestCard((long)1); printf("Slot 0: %d\nSlot 1: %d\n\n",slot0,slot1); } -- END OF CODE -- I tried to run it in CodeWarrior... And my playstation ALWAYS chokes on the TestCard routine. Always. No visible error. It just locks up. Blam. I can't get it to work. No matter what I do. I tried changing alot of target information, but it didn't seem to help. Then I compiled this same exact program in GCC and it works like a charm. (BTW, New memory cards return 4, and the access card returns 0) Has anyone else had this problem? I browsed over the newsgroup to see if anyone else had posted problems(It seems like a big problem), but I didn't see anyone, so I decied to post. 'Darco