]> Shamusworld >> Repos - virtualjaguar/blob - src/op.h
Added Object Processor browser window for debug mode.
[virtualjaguar] / src / op.h
1 //
2 // OBJECTP.H: Object Processor header file
3 //
4
5 #ifndef __OBJECTP_H__
6 #define __OBJECTP_H__
7
8 #include "types.h"
9
10 void OPInit(void);
11 void OPReset(void);
12 void OPDone(void);
13
14 uint64 OPLoadPhrase(uint32 offset);
15
16 void OPProcessList(int scanline, bool render);
17 uint32 OPGetListPointer(void);
18 void OPSetStatusRegister(uint32 data);
19 uint32 OPGetStatusRegister(void);
20 void OPSetCurrentObject(uint64 object);
21
22 //uint8 OPReadByte(uint32, uint32 who = UNKNOWN);
23 //uint16 OPReadWord(uint32, uint32 who = UNKNOWN);
24 //void OPWriteByte(uint32, uint8, uint32 who = UNKNOWN);
25 //void OPWriteWord(uint32, uint16, uint32 who = UNKNOWN);
26
27 #define OPFLAG_RELEASE          8                                       // Bus release bit
28 #define OPFLAG_TRANS            4                                       // Transparency bit
29 #define OPFLAG_RMW                      2                                       // Read-Modify-Write bit
30 #define OPFLAG_REFLECT          1                                       // Horizontal mirror bit
31
32 // Exported variables
33
34 extern uint8 objectp_running;
35
36 #endif  // __OBJECTP_H__