STILL HAVING INVALID OPCODE

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

STILL HAVING INVALID OPCODE

Post by digo_rp »

HI ALL I´M STILL HAVING THIS ERROR INVALID OPCODE
EXCEPTION 6 IN SOME PC´S AND SOMETIMES.

COULD ANYONE HELP ME ?

MAYBE SHOULD BE THE LINK FILE ?
User avatar
carbonBased
Member
Member
Posts: 382
Joined: Sat Nov 20, 2004 12:00 am
Location: Wellesley, Ontario, Canada
Contact:

Post by carbonBased »

You should probably limit your use of "ALL CAPS"... people generally interpret that to represent yelling and hostility.

As per your issue... are you saying that some PC's experience this invalid opcode, but some do not?

Do you have a list of PC's that exhibit this issue? Is it consistant?

Can you determine the opcode in question? Your handler should be able to do this.

--Jeff
User avatar
prajwal
Member
Member
Posts: 154
Joined: Sat Oct 23, 2004 11:00 pm
Contact:

Post by prajwal »

If u r saying this exception is coming indeterministically....
then i have one suggestion based on my experience .....

(Assuming u r using gcc compiler + C as development langauge )

The problem may be related to Optimization level u use while compiling ur code
which contains mix of C and asm (using __asm__ __volatile__(...) stuff)

If ur optimuization level is O2 or above, then some mem reference might be optimized for regiters. But u might be using that mem variable in __asm__() statement which may
lead to unexpected error (where in i faced Exception 6)

Reducing Optimization level to O1 and declaring these variables (referenced in C + asm code ) as __volatile__ solved the problem to me.... try it once...
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

guys, forgive me at using ALL CAPS.

Post by digo_rp »

please I would like to ask everyone here to forgive me that mistake...
Post Reply