Path: chuka.playstation.co.uk!news From: "John Blackburne" Newsgroups: scee.yaroze.programming.codewarrior,scea.yaroze.programming.codewarrior Subject: GTE asm with CodeWarrior Date: Sat, 23 Jan 1999 22:59:01 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 49 Message-ID: <78dk65$nd41@chuka.playstation.co.uk> NNTP-Posting-Host: th-pm01-13.ndirect.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express Macintosh Edition - 4.5 (0410) Xref: chuka.playstation.co.uk scee.yaroze.programming.codewarrior:433 scea.yaroze.programming.codewarrior:377 I'm having problems comiling GTE and GTE related code using CodeWarrior. CodeWarrior's assembler does not understand any GTE op-codes, nor does it understand the R3000 opcodes lwc2 and swc2. So the following code: asm void _testing(VECTOR *pV, int iScale) { lwc2 9, 0(a0) lwc2 10, 4(a0) lwc2 11, 8(a0) mtc2 a1, 8 nop nop GPF 1 swc2 25, 0(a0) swc2 26, 4(a0) swc2 27, 8(a0) jr ra nop } Generates the following errors: Error : illegal operand math.c line 90 lwc2 9, 0(a0) Error : illegal operand math.c line 91 lwc2 10, 4(a0) Error : illegal operand math.c line 92 lwc2 11, 8(a0) Error : unknown assembler instruction mnemonic math.c line 96 GPF 1 Error : illegal operand math.c line 97 swc2 25, 0(a0) Error : illegal operand math.c line 98 swc2 26, 4(a0) Error : illegal operand math.c line 99 swc2 27, 8(a0) I might be able to work around this using a 'dw' op-code/directive but that doesn't seem to be recognised either. I'm using the latest version of CodeWarrior for Net Yaroze on a Macintosh. John