libmsx
C library for MSX
|
Await interrupts. More...
Macros | |
#define | await_interrupt() |
MSX Waits for next interrupt. | |
Functions | |
void | await_vsync (void) |
MSX Waits for next VSYNC interrupt. | |
Variables | |
volatile bool | vsync_busy |
MSX "Busy" flag for VSYNC interrupt routine. | |
Await interrupts.
#define await_interrupt | ( | ) |
MSX
Waits for next interrupt.
Calling to await_interrupt()
waits for next interrupt and blocks until the interrupt would to be processed.
Definition at line 71 of file interrupt.h.
void await_vsync | ( | void | ) |
MSX
Waits for next VSYNC interrupt.
Calling to await_vsync()
waits for next VSYNC interrupt and blocks until the interrupt would to be processed.
|
extern |
MSX
"Busy" flag for VSYNC interrupt routine.
vsync_busy
is set to false
when the VSYNC interrupt routine finished.
await_vsync()
to work with the VSYNC interrupt routine. Normally, you don't need to worry about this. However, if you want to override the default VSYNC interrupt routine without using set_vsync_handler()
, you have to clear it in the VSYNC interrupt routine.