English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 16 September 2010, 14:44   #1
CmdrVimes
Badge 177
 
CmdrVimes's Avatar
 
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?
CmdrVimes is offline  
Old 16 September 2010, 15:03   #2
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Most probably caused by executing trashed/invalid code.
StingRay is offline  
Old 17 September 2010, 16:14   #3
phx
Natteravn
 
phx's Avatar
 
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.
phx is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:31.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06919 seconds with 13 queries