They're not shortcuts as such, but meant to be used to implement OS calls. Basically the CPU goes into supervisor mode, and fetches the corresponding exception vector and subs there, just like any other exception or interrupt. The stack frame could look different on different 68K models.

Trap 0 maps to vector 32, trap 1 maps to vector 33 etc. There are only 16 traps and trap 15 doesn't map to offset $C0 but $BC. These are offsets into the vector base and could be anywhere in RAM on 68010 and above. The vector base is only fixed to address 0 on the 68000.

The full guide you want is the M68K programmer's reference from www.freescale.com which will tell you every detail on this and the rest of the 68K series.

Since I know you're into the evil cracking side of things MethodGit, there is no harm (usually) in using them to redirect to your code if space is tight (after all, it's only a word-long instruction to TRAP)... but remember it's an exception, so if you 'jump' into your code using a TRAP you need to return with RTE, not RTS. Check a few games and you'll probably find some with the author's own debugging/error routines hooked into one of the TRAPs (especially common on Sega Megadrive/Genesis games, for some odd reason)!

They're not shortcuts as such, but meant to be used to implement OS calls. Basically the CPU goes into supervisor mode, and fetches the corresponding exception vector and subs there, just like any other exception or interrupt. The stack frame could look different on different 68K models.

Trap 0 maps to vector 32, trap 1 maps to vector 33 etc. There are only 16 traps and trap 15 doesn't map to offset $C0 but $BC. These are offsets into the vector base and could be anywhere in RAM on 68010 and above. The vector base is only fixed to address 0 on the 68000.

The full guide you want is the M68K programmer's reference from www.freescale.com which will tell you every detail on this and the rest of the 68K series.

Having trouble finding it on that website. Is it possible to provide a direct link (if it's something that can be downloaded, of course)?