10 #define VIDEO_MODE_16BPP_CRY 0
11 #define VIDEO_MODE_24BPP_RGB 1
12 #define VIDEO_MODE_16BPP_DIRECT 2
13 #define VIDEO_MODE_16BPP_RGB 3
15 // 68000 Interrupt bit positions (enabled at $F000E0)
17 enum { IRQ_VBLANK = 0, IRQ_GPU, IRQ_OPFLAG, IRQ_TIMER, IRQ_DSP };
23 uint8 TOMReadByte(uint32 offset, uint32 who = UNKNOWN);
24 uint16 TOMReadWord(uint32 offset, uint32 who = UNKNOWN);
25 void TOMWriteByte(uint32 offset, uint8 data, uint32 who = UNKNOWN);
26 void TOMWriteWord(uint32 offset, uint16 data, uint32 who = UNKNOWN);
28 //void TOMExecScanline(int16 * backbuffer, int32 scanline, bool render);
29 void TOMExecScanline(uint16 scanline, bool render);
30 uint32 tom_getVideoModeWidth(void);
31 uint32 tom_getVideoModeHeight(void);
32 uint8 tom_getVideoMode(void);
33 uint8 * tom_get_ram_pointer(void);
34 uint16 tom_get_hdb(void);
35 uint16 tom_get_vdb(void);
36 //uint16 tom_get_scanline(void);
37 //uint32 tom_getHBlankWidthInPixels(void);
39 int tom_irq_enabled(int irq);
40 uint16 tom_irq_control_reg(void);
41 void tom_set_irq_latch(int irq, int enabled);
42 void TOMExecPIT(uint32 cycles);
43 void tom_set_pending_jerry_int(void);
44 void tom_set_pending_timer_int(void);
45 void tom_set_pending_object_int(void);
46 void tom_set_pending_gpu_int(void);
47 void tom_set_pending_video_int(void);
48 void TOMResetPIT(void);
50 //uint32 TOMGetSDLScreenPitch(void);
51 void TOMResetBackbuffer(int16 * backbuffer);
55 extern uint32 tom_width;
56 extern uint32 tom_height;