X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Finclude%2Fjaguar.h;h=6463c2ff29466283e13c8954f5eb04f948853284;hb=c2f778cea7c1e7bc6507a5749d74267babc2a232;hp=ef3ea8eb3c7928df03bed382b04d2d75d0ee9714;hpb=fa566a2c8ec532eb5325b4d5a663fb2a7d72adc6;p=virtualjaguar diff --git a/src/include/jaguar.h b/src/include/jaguar.h index ef3ea8e..6463c2f 100644 --- a/src/include/jaguar.h +++ b/src/include/jaguar.h @@ -15,7 +15,7 @@ #include "clock.h" #include "anajoy.h" #include "joystick.h" -#include "pcm.h" +#include "dac.h" #include "jagdasm.h" #include "dsnd.h" #include "cdrom.h" @@ -45,18 +45,29 @@ void jaguar_long_write(unsigned offset, unsigned data); uint32 jaguar_interrupt_handler_is_valid(uint32 i); void jaguar_dasm(uint32 offset, uint32 qt); +//New stuff... +void JaguarExecute(int16 * backbuffer, bool render); + // Some handy macros to help converting native endian to big endian (jaguar native) // & vice versa -#define SET32(r, a, v) r[a] = ((v) & 0xFF000000) >> 24, r[a+1] = ((v) & 0x00FF0000) >> 16, \ - r[a+2] = ((v) & 0x0000FF00) >> 8, r[a+3] = (v) & 0x000000FF -#define GET32(r, a) ((r[a] << 24) | (r[a+1] << 16) | (r[a+2] << 8) | r[a+3]) -#define SET16(r, a, v) r[a] = ((v) & 0xFF00) >> 8, r[a+1] = (v) & 0xFF -#define GET16(r, a) ((r[a] << 8) | r[a+1]) +#define SET32(r, a, v) r[(a)] = ((v) & 0xFF000000) >> 24, r[(a)+1] = ((v) & 0x00FF0000) >> 16, \ + r[(a)+2] = ((v) & 0x0000FF00) >> 8, r[(a)+3] = (v) & 0x000000FF +#define GET32(r, a) ((r[(a)] << 24) | (r[(a)+1] << 16) | (r[(a)+2] << 8) | r[(a)+3]) +#define SET16(r, a, v) r[(a)] = ((v) & 0xFF00) >> 8, r[(a)+1] = (v) & 0xFF +#define GET16(r, a) ((r[(a)] << 8) | r[(a)+1]) + +// Various clock rates + +#define M68K_CLOCK_RATE_PAL 13296950 +#define M68K_CLOCK_RATE_NTSC 13295453 +#define RISC_CLOCK_RATE_PAL 26593900 +#define RISC_CLOCK_RATE_NTSC 26590906 + -//Temp debug stuff +//Temp debug stuff (will go away soon, so don't use these) void DumpMainMemory(void); uint8 * GetRamPtr(void); -#endif // #ifndef __JAGUAR_H__ +#endif // __JAGUAR_H__