Jump to content
Sign in to follow this  
Shamus

Technical 68K Question

Recommended Posts

This may be a silly question, but then again, maybe not. I'm curious to know if any of you Jaguar developers out there know what the 68K in the Jaguar does when it hits an "official" illegal instruction (i.e., $4AFC). Does it fetch the next instruction or does it hang on it or does it halt the processor? :?

 

-- Shamus

Share this post


Link to post
Share on other sites

I can't remember offhand, but I think it's quite a high-level interrupt (non-maskable?) which forces the 68k into its interrupt vector table to try and work out what do do next. If nobody's answered by tomorrow I'll look it up, we've got some of the original 68K books in the information centre at work 8)

 

On a BJL system it crashes back to the homescreen (helpfully reporting Error 03) but I don't know what it would do on a production-level Jag...most likely either blackscreen, a reboot or the program freezing (leaving the display onscreen). My money would be one of the first two ;)

 

Stone

Share this post


Link to post
Share on other sites

It treats it like other exceptions. I.E. it goes to the vector table and pulls the address of the routine to handle the exception processing.

 

In the case of an illegal instruction it is vector number 4.

 

Which basically means the 68000 looks at address $c to pull the longword address of the routine to handle the exception.

 

Vector number 2 is a bus error, 3 is an address error.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...