]> Shamusworld >> Repos - virtualjaguar/blob - src/jerry.h
c1f1f7ad6d0ad71dc0b24ac60c0c3b588172a55e
[virtualjaguar] / src / jerry.h
1 //
2 // JERRY.H: Header file
3 //
4
5 #ifndef __JERRY_H__
6 #define __JERRY_H__
7
8 #include "types.h"
9
10 void JERRYInit(void);
11 void JERRYReset(void);
12 void JERRYDone(void);
13
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);
18
19 void JERRYExecPIT(uint32 cycles);
20 void JERRYI2SExec(uint32 cycles);
21
22 // 68000 Interrupt bit positions (enabled at $F10020)
23
24 enum { IRQ2_EXTERNAL = 0, IRQ2_DSP, IRQ2_TIMER1, IRQ2_TIMER2, IRQ2_ASI, IRQ2_SSI };
25
26 bool JERRYIRQEnabled(int irq);
27 void JERRYSetPendingIRQ(int irq);
28
29 #endif