| 1 | #ifndef __WSWAN_INTERRUPT_H |
| 2 | #define __WSWAN_INTERRUPT_H |
| 3 | |
| 4 | #include "../mednafen-types.h" |
| 5 | #include "../state.h" |
| 6 | |
| 7 | #ifdef __cplusplus |
| 8 | extern "C" { |
| 9 | #endif |
| 10 | |
| 11 | enum |
| 12 | { |
| 13 | WSINT_SERIAL_SEND = 0, |
| 14 | WSINT_KEY_PRESS, |
| 15 | WSINT_RTC_ALARM, |
| 16 | WSINT_SERIAL_RECV, |
| 17 | WSINT_LINE_HIT, |
| 18 | WSINT_VBLANK_TIMER, |
| 19 | WSINT_VBLANK, |
| 20 | WSINT_HBLANK_TIMER |
| 21 | }; |
| 22 | |
| 23 | void WSwan_Interrupt(int); |
| 24 | void WSwan_InterruptWrite(uint32 A, uint8 V); |
| 25 | uint8 WSwan_InterruptRead(uint32 A); |
| 26 | void WSwan_InterruptCheck(void); |
| 27 | int WSwan_InterruptStateAction(StateMem *sm, int load, int data_only); |
| 28 | void WSwan_InterruptReset(void); |
| 29 | |
| 30 | #ifdef __cplusplus |
| 31 | } |
| 32 | #endif |
| 33 | |
| 34 | #endif |