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

◆ ChangeMask()

void SRL::Interrupt::ChangeMask ( Mask enable,
Mask disable )
inlinestatic

Selectively modify the SCU interrupt mask.

Parameters
enableMask bits to AND with the current mask (preserves selected interrupts)
disableMask bits to OR with the current mask (disables selected interrupts)

Thin wrapper over System::ChangeInterruptMask(). Result = (currentMask & enable) | disable.

Example:
// Enable V-Blank without changing other mask bits
@ None
No interrupts enabled (0x0000).
Definition srl_interrupt.hpp:85
@ VBlankIn
Enable V-Blank In interrupt (0x0001).
Definition srl_interrupt.hpp:88
static void ChangeMask(Mask enable, Mask disable)
Selectively modify the SCU interrupt mask.
Definition srl_interrupt.hpp:442
See also
SetMask() to replace the entire mask at once