Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Darco Newsgroups: scee.yaroze.freetalk.english,scea.yaroze.freetalk Subject: TestCard() issue Date: Sun, 13 Sep 1998 14:37:38 -0400 Organization: SCEA News Server Lines: 47 Message-ID: <35FC10F2.3841CEE6@bigfoot.com> NNTP-Posting-Host: 419.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.freetalk.english:2297 scea.yaroze.freetalk:924 I'm posting this message in the freetalk area because I don't think that many people read the codewarrior newsgroup. I had a few responses to that post, but the issue is still unresolved. So here it goes. 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. Doesn't matter what card is in the slot. Even without a card. Crash. Burn. Die. 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) In the other newsgroup someone tested my code and confirmed that it crashes the yaroze when compiled with codewarrior. This would seem to be a serious problem... I'm suprised that no one has run into it before. 'Darco