30 lines
526 B
C
30 lines
526 B
C
#ifndef EMU_PIC_H
|
|
# define EMU_PIC_H
|
|
|
|
|
|
typedef struct PIC {
|
|
uint8_t icw1,icw3,icw4,mask,ins,pend,mask2;
|
|
int icw;
|
|
uint8_t vector;
|
|
int read;
|
|
} PIC;
|
|
|
|
|
|
extern PIC pic, pic2;
|
|
extern int pic_intpending;
|
|
|
|
|
|
extern void pic_init(void);
|
|
extern void pic2_init(void);
|
|
extern void pic_reset(void);
|
|
|
|
extern void picint(uint16_t num);
|
|
extern void picintlevel(uint16_t num);
|
|
extern void picintc(uint16_t num);
|
|
extern uint8_t picinterrupt(void);
|
|
extern void picclear(int num);
|
|
extern void dumppic(void);
|
|
|
|
|
|
#endif /*EMU_PIC_H*/
|