16 September 2010, 14:44 | #1 |
Badge 177
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
|
** CHK Exception **
Hi,
I tried running some code in AsmPro and it dropped out with this message: ** CHK Exception ** Raised at $00000030 What should I be looking for as the cause of this? |
16 September 2010, 15:03 | #2 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Most probably caused by executing trashed/invalid code.
|
17 September 2010, 16:14 | #3 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
The exception is caused by a CHK <ea>,Dn instruction (checks if Dn is positive and less than the value read from <ea>). When this range check fails, the exeception occurs.
As Stingray said this will usually happen when executing random code in memory (probably because your stack was messed up?). You will certainly not find a CHK instruction in your own source. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Exception "Line 1111 Emulator" ($2c) Error at $1004" when exiting game | demolition | support.WinUAE | 15 | 30 November 2012 16:43 |
Exception 0 | vriviere | support.WinUAE | 9 | 25 June 2012 14:36 |
WHDLoad - Exception "Privilege Violation" Error | ricky500 | project.WHDLoad | 12 | 13 November 2008 22:45 |
Exception "Privilege Violation" on MadTV | andy_blah | project.WHDLoad | 2 | 29 August 2008 17:50 |
Nightbreed Interactive Movie - "Line 1111 Emulator" exception | MethodGit | project.WHDLoad | 5 | 18 April 2007 15:27 |
|
|