English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 16 September 2010, 15:44   #1
CmdrVimes
Badge 177
CmdrVimes's Avatar
 
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 67
** 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  
AdSense AdSense  
Old 16 September 2010, 16:03   #2
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 5,591
Most probably caused by executing trashed/invalid code.
StingRay is offline  
Old 17 September 2010, 17:14   #3
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,019
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  
AdSense AdSense  
 


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 17:43
Exception 0 vriviere support.WinUAE 9 25 June 2012 15:36
WHDLoad - Exception "Privilege Violation" Error ricky500 project.WHDLoad 12 13 November 2008 23:45
Exception "Privilege Violation" on MadTV andy_blah project.WHDLoad 2 29 August 2008 18:50
Nightbreed Interactive Movie - "Line 1111 Emulator" exception MethodGit project.WHDLoad 5 18 April 2007 16: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 22:19.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.16486 seconds with 12 queries