comparison vdp.h @ 697:7f96bd1cb1be

Sync fixes and logging to fix more sync issues
author Michael Pavone <pavone@retrodev.com>
date Mon, 11 May 2015 00:28:47 -0700
parents 4996369f1463
children 4cd8823f79e3
comparison
equal deleted inserted replaced
696:0b2242bbc84a 697:7f96bd1cb1be
141 void *evenbuf; 141 void *evenbuf;
142 uint16_t cram[CRAM_SIZE]; 142 uint16_t cram[CRAM_SIZE];
143 uint32_t colors[CRAM_SIZE*3]; 143 uint32_t colors[CRAM_SIZE*3];
144 uint32_t debugcolors[1 << (3 + 1 + 1 + 1)];//3 bits for source, 1 bit for priority, 1 bit for shadow, 1 bit for hilight 144 uint32_t debugcolors[1 << (3 + 1 + 1 + 1)];//3 bits for source, 1 bit for priority, 1 bit for shadow, 1 bit for hilight
145 uint16_t vsram[VSRAM_SIZE]; 145 uint16_t vsram[VSRAM_SIZE];
146 uint32_t frame;
146 uint16_t vcounter; 147 uint16_t vcounter;
147 uint16_t hslot; //hcounter/2 148 uint16_t hslot; //hcounter/2
148 uint16_t hscroll_a; 149 uint16_t hscroll_a;
149 uint16_t hscroll_b; 150 uint16_t hscroll_b;
150 uint8_t latched_mode; 151 uint8_t latched_mode;
192 void vdp_int_ack(vdp_context * context, uint16_t int_num); 193 void vdp_int_ack(vdp_context * context, uint16_t int_num);
193 void vdp_print_sprite_table(vdp_context * context); 194 void vdp_print_sprite_table(vdp_context * context);
194 void vdp_print_reg_explain(vdp_context * context); 195 void vdp_print_reg_explain(vdp_context * context);
195 void latch_mode(vdp_context * context); 196 void latch_mode(vdp_context * context);
196 uint32_t vdp_cycles_to_frame_end(vdp_context * context); 197 uint32_t vdp_cycles_to_frame_end(vdp_context * context);
197 uint8_t vdp_is_frame_over(vdp_context * context); 198 uint32_t vdp_frame_end_line(vdp_context *context);
198 199
199 extern int32_t color_map[1 << 12]; 200 extern int32_t color_map[1 << 12];
200 201
201 #endif //VDP_H_ 202 #endif //VDP_H_