comparison vdp.h @ 437:afbea09d7fb4

Restore one of the VDP debugging modes
author Mike Pavone <pavone@retrodev.com>
date Mon, 15 Jul 2013 23:07:45 -0700
parents e341fd5aa996
children b7c3b2d22858
comparison
equal deleted inserted replaced
436:e341fd5aa996 437:afbea09d7fb4
17 #define MAX_SPRITES_FRAME 80 17 #define MAX_SPRITES_FRAME 80
18 #define MAX_SPRITES_FRAME_H32 64 18 #define MAX_SPRITES_FRAME_H32 64
19 19
20 #define FBUF_SHADOW 0x0001 20 #define FBUF_SHADOW 0x0001
21 #define FBUF_HILIGHT 0x0010 21 #define FBUF_HILIGHT 0x0010
22 #define FBUF_BIT_PRIORITY 0x1000 22 #define DBG_SHADOW 0x10
23 #define FBUF_SRC_MASK 0xE000 23 #define DBG_HILIGHT 0x20
24 #define FBUF_SRC_A 0x0000 24 #define DBG_PRIORITY 0x8
25 #define FBUF_SRC_W 0x2000 25 #define DBG_SRC_MASK 0x7
26 #define FBUF_SRC_B 0x4000 26 #define DBG_SRC_A 0x1
27 #define FBUF_SRC_S 0x6000 27 #define DBG_SRC_W 0x2
28 #define FBUF_SRC_BG 0x8000 28 #define DBG_SRC_B 0x3
29 #define DBG_SRC_S 0x4
30 #define DBG_SRC_BG 0x0
29 31
30 #define MCLKS_LINE 3420 32 #define MCLKS_LINE 3420
31 33
32 #define FLAG_DOT_OFLOW 0x01 34 #define FLAG_DOT_OFLOW 0x01
33 #define FLAG_CAN_MASK 0x02 35 #define FLAG_CAN_MASK 0x02
126 void *framebuf; 128 void *framebuf;
127 void *oddbuf; 129 void *oddbuf;
128 void *evenbuf; 130 void *evenbuf;
129 uint16_t cram[CRAM_SIZE]; 131 uint16_t cram[CRAM_SIZE];
130 uint32_t colors[CRAM_SIZE*3]; 132 uint32_t colors[CRAM_SIZE*3];
133 uint32_t debugcolors[1 << (3 + 1 + 1 + 1)];//3 bits for source, 1 bit for priority, 1 bit for shadow, 1 bit for hilight
131 uint16_t vsram[VSRAM_SIZE]; 134 uint16_t vsram[VSRAM_SIZE];
132 uint8_t latched_mode; 135 uint8_t latched_mode;
133 uint16_t hscroll_a; 136 uint16_t hscroll_a;
134 uint16_t hscroll_b; 137 uint16_t hscroll_b;
135 uint8_t sprite_index; 138 uint8_t sprite_index;
147 uint8_t flags2; 150 uint8_t flags2;
148 uint8_t double_res; 151 uint8_t double_res;
149 uint8_t b32; 152 uint8_t b32;
150 uint8_t buf_a_off; 153 uint8_t buf_a_off;
151 uint8_t buf_b_off; 154 uint8_t buf_b_off;
155 uint8_t debug;
152 uint8_t *tmp_buf_a; 156 uint8_t *tmp_buf_a;
153 uint8_t *tmp_buf_b; 157 uint8_t *tmp_buf_b;
154 } vdp_context; 158 } vdp_context;
155 159
156 void init_vdp_context(vdp_context * context); 160 void init_vdp_context(vdp_context * context);