Mercurial > repos > blastem
comparison vdp.h @ 1167:e758ddbf0624
Initial work on emulating top and bottom border area
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 15 Jan 2017 15:07:24 -0800 |
parents | c83ec07ddbac |
children | 3772bb926be5 |
comparison
equal
deleted
inserted
replaced
1166:73e36dac5be7 | 1167:e758ddbf0624 |
---|---|
153 uint8_t *vdpmem; | 153 uint8_t *vdpmem; |
154 //stores 2-bit palette + 4-bit palette index + priority for current sprite line | 154 //stores 2-bit palette + 4-bit palette index + priority for current sprite line |
155 uint8_t *linebuf; | 155 uint8_t *linebuf; |
156 //pointer to current line in framebuffer | 156 //pointer to current line in framebuffer |
157 uint32_t *output; | 157 uint32_t *output; |
158 uint32_t *fb; | |
158 system_header *system; | 159 system_header *system; |
159 uint16_t cram[CRAM_SIZE]; | 160 uint16_t cram[CRAM_SIZE]; |
160 uint32_t colors[CRAM_SIZE*4]; | 161 uint32_t colors[CRAM_SIZE*4]; |
161 uint32_t debugcolors[1 << (3 + 1 + 1 + 1)];//3 bits for source, 1 bit for priority, 1 bit for shadow, 1 bit for hilight | 162 uint32_t debugcolors[1 << (3 + 1 + 1 + 1)];//3 bits for source, 1 bit for priority, 1 bit for shadow, 1 bit for hilight |
162 uint16_t vsram[VSRAM_SIZE]; | 163 uint16_t vsram[VSRAM_SIZE]; |
163 uint16_t vscroll_latch[2]; | 164 uint16_t vscroll_latch[2]; |
164 uint32_t output_pitch; | 165 uint32_t output_pitch; |
165 uint32_t frame; | 166 uint32_t frame; |
166 uint16_t vcounter; | 167 uint16_t vcounter; |
168 uint16_t inactive_start; | |
169 uint16_t border_top; | |
170 uint16_t border_bot; | |
167 uint16_t hscroll_a; | 171 uint16_t hscroll_a; |
168 uint16_t hscroll_b; | 172 uint16_t hscroll_b; |
173 uint16_t h40_lines; | |
169 uint8_t hslot; //hcounter/2 | 174 uint8_t hslot; //hcounter/2 |
170 uint8_t latched_mode; | 175 uint8_t latched_mode; |
171 uint8_t sprite_index; | 176 uint8_t sprite_index; |
172 uint8_t sprite_draws; | 177 uint8_t sprite_draws; |
173 uint8_t h40_lines; | |
174 int8_t slot_counter; | 178 int8_t slot_counter; |
175 int8_t cur_slot; | 179 int8_t cur_slot; |
176 sprite_draw sprite_draw_list[MAX_DRAWS]; | 180 sprite_draw sprite_draw_list[MAX_DRAWS]; |
177 sprite_info sprite_info_list[MAX_SPRITES_LINE]; | 181 sprite_info sprite_info_list[MAX_SPRITES_LINE]; |
178 uint8_t sat_cache[SAT_CACHE_SIZE]; | 182 uint8_t sat_cache[SAT_CACHE_SIZE]; |