Path: chuka.playstation.co.uk!news From: "Craig Graham" Newsgroups: scea.yaroze.programming.codewarrior,scee.yaroze.programming.codewarrior Subject: Re: C++ and 'exit' Date: 17 Mar 1998 23:29:32 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 44 Message-ID: <01bd51fd$313255c0$54d449c2@Angela1.intelligent-group.com> References: <6e9fbt$6nq7@chuka.playstation.co.uk> <6eluo8$dud31@chuka.playstation.co.uk> NNTP-Posting-Host: l84.mistral.co.uk X-Newsreader: Microsoft Internet News 4.70.1155 Xref: chuka.playstation.co.uk scea.yaroze.programming.codewarrior:303 scee.yaroze.programming.codewarrior:201 Joel has done a funny here, his code fragment is from GNU C, not CW :) The correct code for CW on Yaroze is: asm void exit(void) { breakc 0x8201 nop } BTW. Steve, if you'd actually looked in the ARS library, the actual Action Replay comm channel access is done using assembler functions - you could have ripped the syntax from there (or from _psstart.c in fact). Craig. Steve Dunn wrote in article <6eluo8$dud31@chuka.playstation.co.uk>... > I tried that and I got... > asm{"break 0"}; > 'Error: end of line expected' with > the underscore under after the first > opening brace. > > Cheers > > Steve > >The "exit()" method isn't supported in > the PlayStation libraries. You can > >call it but it will just crash your > program (though, you may want this in > >an Assert). Otherwise, just write your > own such as > > > >void exit(int code) > >{ > > printf("Exit called with code %i! > Program halted.\n",code); > > asm{"break 0"}; > >} > >