KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Traps

API for managing TRAPA events and handlers. More...

Topics

 Handlers
 API for managing TRAPA handlers
 

Files

file  trap.h
 

 

Typedefs

typedef uint8_t trapa_t
 Type for a code passed to the TRAPA instruction.
 

Detailed Description

API for managing TRAPA events and handlers.

This API provides methods for setting and getting the installed handler for a particular TRAPA code.

TRAPA is an SH4 instruction which simply takes a code (0-255) and fires an exception event which transfers execution to the kernel so that it can then be handled in software.

Typedef Documentation

◆ trapa_t

typedef uint8_t trapa_t

Type for a code passed to the TRAPA instruction.