2 // JERRY.H: Header file
10 void jerry_init(void);
11 void jerry_reset(void);
12 void jerry_done(void);
14 uint8 JERRYReadByte(uint32 offset, uint32 who = UNKNOWN);
15 uint16 JERRYReadWord(uint32 offset, uint32 who = UNKNOWN);
16 void JERRYWriteByte(uint32 offset, uint8 data, uint32 who = UNKNOWN);
17 void JERRYWriteWord(uint32 offset, uint16 data, uint32 who = UNKNOWN);
19 void jerry_pit_exec(uint32 cycles);
20 void jerry_i2s_exec(uint32 cycles);
22 // 68000 Interrupt bit positions (enabled at $F10020)
24 enum { IRQ2_EXTERNAL = 0, IRQ2_DSP, IRQ2_TIMER1, IRQ2_TIMER2, IRQ2_ASI, IRQ2_SSI };
26 bool JERRYIRQEnabled(int irq);
27 void JERRYSetPendingIRQ(int irq);