X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fjerry.h;h=4879c0265778ed3f3d2eb7d73f9254c8bc6b5b45;hb=bae593a9f2f6557d271d8b2eacc5d4a825cf4b0a;hp=c1f1f7ad6d0ad71dc0b24ac60c0c3b588172a55e;hpb=d239de704f276a75d927900e3d413a44cc87116c;p=virtualjaguar diff --git a/src/jerry.h b/src/jerry.h index c1f1f7a..4879c02 100644 --- a/src/jerry.h +++ b/src/jerry.h @@ -5,7 +5,8 @@ #ifndef __JERRY_H__ #define __JERRY_H__ -#include "types.h" +//#include "types.h" +#include "memory.h" void JERRYInit(void); void JERRYReset(void); @@ -21,9 +22,19 @@ void JERRYI2SExec(uint32 cycles); // 68000 Interrupt bit positions (enabled at $F10020) -enum { IRQ2_EXTERNAL = 0, IRQ2_DSP, IRQ2_TIMER1, IRQ2_TIMER2, IRQ2_ASI, IRQ2_SSI }; +//enum { IRQ2_EXTERNAL = 0, IRQ2_DSP, IRQ2_TIMER1, IRQ2_TIMER2, IRQ2_ASI, IRQ2_SSI }; +enum { IRQ2_EXTERNAL=0x01, IRQ2_DSP=0x02, IRQ2_TIMER1=0x04, IRQ2_TIMER2=0x08, IRQ2_ASI=0x10, IRQ2_SSI=0x20 }; bool JERRYIRQEnabled(int irq); void JERRYSetPendingIRQ(int irq); +// This should stay inside this file, but it's here for now... +// Need to set up an interface function so that this can go back +void JERRYI2SCallback(void); + +// External variables + +extern uint32 JERRYI2SInterruptDivide; +extern int32 JERRYI2SInterruptTimer; + #endif