SaturnRingLibrary 0.9.2
SGL wrapper
Loading...
Searching...
No Matches

◆ ChangeInterruptMask()

void SRL::System::ChangeInterruptMask ( uint32_t andMask,
uint32_t orMask )
inlinestatic

Modify the SCU interrupt mask with AND/OR logic.

Parameters
andMaskBits to AND with current mask (use to enable interrupts)
orMaskBits to OR with current mask (use to disable interrupts)

Calls the BIOS entry at 0x6000344. Result = (currentMask & andMask) | orMask.

Example:
// Enable V-Blank In and V-Blank Out without affecting other bits
System::ChangeInterruptMask(0xFFFFFFFC, 0); // Clear bits 0,1
static void ChangeInterruptMask(uint32_t andMask, uint32_t orMask)
Modify the SCU interrupt mask with AND/OR logic.
Definition srl_system.hpp:284
See also
Interrupt::ChangeMask() for the type-safe enum wrapper