comparison vdp.h @ 1325:58bfbed6cdb5

Fairly major rework of how active/passive is handled along with how the V30 mode bit is handled. Allows the vertical border extension trick in Overdrive 2 to work right
author Michael Pavone <pavone@retrodev.com>
date Fri, 21 Apr 2017 01:22:52 -0700
parents b1423d432c0e
children 69c25e1188e5
comparison
equal deleted inserted replaced
1324:2fc444b69351 1325:58bfbed6cdb5
175 uint16_t inactive_start; 175 uint16_t inactive_start;
176 uint16_t border_top; 176 uint16_t border_top;
177 uint16_t border_bot; 177 uint16_t border_bot;
178 uint16_t hscroll_a; 178 uint16_t hscroll_a;
179 uint16_t hscroll_b; 179 uint16_t hscroll_b;
180 uint16_t h40_lines; 180 uint16_t h40_lines;
181 uint16_t output_lines;
181 uint8_t hslot; //hcounter/2 182 uint8_t hslot; //hcounter/2
182 uint8_t latched_mode;
183 uint8_t sprite_index; 183 uint8_t sprite_index;
184 uint8_t sprite_draws; 184 uint8_t sprite_draws;
185 int8_t slot_counter; 185 int8_t slot_counter;
186 int8_t cur_slot; 186 int8_t cur_slot;
187 sprite_draw sprite_draw_list[MAX_DRAWS]; 187 sprite_draw sprite_draw_list[MAX_DRAWS];
202 uint8_t buf_a_off; 202 uint8_t buf_a_off;
203 uint8_t buf_b_off; 203 uint8_t buf_b_off;
204 uint8_t debug; 204 uint8_t debug;
205 uint8_t debug_pal; 205 uint8_t debug_pal;
206 uint8_t pending_byte; 206 uint8_t pending_byte;
207 uint8_t state;
207 uint8_t *tmp_buf_a; 208 uint8_t *tmp_buf_a;
208 uint8_t *tmp_buf_b; 209 uint8_t *tmp_buf_b;
209 } vdp_context; 210 } vdp_context;
210 211
211 void init_vdp_context(vdp_context * context, uint8_t region_pal); 212 void init_vdp_context(vdp_context * context, uint8_t region_pal);