| 1 | // |
| 2 | // OBJECTP.H: Object Processor header file |
| 3 | // |
| 4 | |
| 5 | #ifndef __OBJECTP_H__ |
| 6 | #define __OBJECTP_H__ |
| 7 | |
| 8 | #include <stdint.h> |
| 9 | |
| 10 | void OPInit(void); |
| 11 | void OPReset(void); |
| 12 | void OPDone(void); |
| 13 | |
| 14 | uint64_t OPLoadPhrase(uint32_t offset); |
| 15 | |
| 16 | void OPProcessList(int scanline, bool render); |
| 17 | uint32_t OPGetListPointer(void); |
| 18 | void OPSetStatusRegister(uint32_t data); |
| 19 | uint32_t OPGetStatusRegister(void); |
| 20 | void OPSetCurrentObject(uint64_t object); |
| 21 | |
| 22 | #define OPFLAG_RELEASE 8 // Bus release bit |
| 23 | #define OPFLAG_TRANS 4 // Transparency bit |
| 24 | #define OPFLAG_RMW 2 // Read-Modify-Write bit |
| 25 | #define OPFLAG_REFLECT 1 // Horizontal mirror bit |
| 26 | |
| 27 | // Exported variables |
| 28 | |
| 29 | extern uint8_t objectp_running; |
| 30 | |
| 31 | #endif // __OBJECTP_H__ |