]> Shamusworld >> Repos - virtualjaguar/blob - src/jaguar.h
Fix for bad window position when coming out of full screen
[virtualjaguar] / src / jaguar.h
1 #ifndef __JAGUAR_H__
2 #define __JAGUAR_H__
3
4 #include "types.h"
5 #include "memory.h"                                                     // For "UNKNOWN" enum
6
7 void JaguarSetScreenBuffer(uint32 * buffer);
8 void JaguarSetScreenPitch(uint32 pitch);
9 void JaguarInit(void);
10 void JaguarReset(void);
11 void JaguarDone(void);
12
13 uint8 JaguarReadByte(uint32 offset, uint32 who = UNKNOWN);
14 uint16 JaguarReadWord(uint32 offset, uint32 who = UNKNOWN);
15 uint32 JaguarReadLong(uint32 offset, uint32 who = UNKNOWN);
16 void JaguarWriteByte(uint32 offset, uint8 data, uint32 who = UNKNOWN);
17 void JaguarWriteWord(uint32 offset, uint16 data, uint32 who = UNKNOWN);
18 void JaguarWriteLong(uint32 offset, uint32 data, uint32 who = UNKNOWN);
19
20 bool JaguarInterruptHandlerIsValid(uint32 i);
21 void JaguarDasm(uint32 offset, uint32 qt);
22
23 void JaguarExecuteNew(void);
24
25 // Exports from JAGUAR.CPP
26
27 extern int32 jaguarCPUInExec;
28 extern uint32 jaguarMainROMCRC32, jaguarROMSize, jaguarRunAddress;
29 extern char * jaguarEepromsPath;
30 extern bool jaguarCartInserted;
31
32 // Various clock rates
33
34 #define M68K_CLOCK_RATE_PAL             13296950
35 #define M68K_CLOCK_RATE_NTSC    13295453
36 #define RISC_CLOCK_RATE_PAL             26593900
37 #define RISC_CLOCK_RATE_NTSC    26590906
38
39 // Stuff for IRQ handling
40
41 #define ASSERT_LINE             1
42 #define CLEAR_LINE              0
43
44 //Temp debug stuff (will go away soon, so don't depend on these)
45
46 void DumpMainMemory(void);
47 uint8 * GetRamPtr(void);
48
49 #endif  // __JAGUAR_H__