64#ifndef SNES_INTERRUPT_INCLUDE
65#define SNES_INTERRUPT_INCLUDE
116#define INT_VBLENABLE (1 << 7)
118#define INT_HVIRQ_H (1 << 4)
120#define INT_HVIRQ_V (1 << 5)
122#define INT_HVIRQ_HV (2 << 4)
124#define INT_JOYPAD_ENABLE (1)
126#define VBL_READY (1 << 7)
128#define HBL_READY (1 << 6)
145#define REG_NMITIMEN (*(vuint8 *)0x4200)
182#define REG_RDNMI (*(vuint8 *)0x4210)
199#define REG_TIMEUP (*(vuint8 *)0x4211)
214#define REG_HVBJOY (*(vuint8 *)0x4212)
249 while ((REG_HVBJOY & VBL_READY)) \
251 while (!(REG_HVBJOY & VBL_READY)) \
void nmiSet(void(*vblankRoutine)(void))
Sets the nmi_handler (VBlank routine).
u16 lag_frame_counter
Lag-frame counter.
void * nmi_handler
VBlank routine.
u8 vblank_flag
VBlank ISR flag.
void WaitForVBlank(void)
Waits for a VBlank interrupt.
void WaitNVBlank(u16 ntime)
Wait for vblank interrupt ntime times
Custom types used by libsnes.