comparison vdp.h @ 922:913a6336ce20

Shift slot number to slot behavior mapping by six slots in H40 mode. This makes the line change slot align with the point at which the display turns on and off at the end of the active display area. Also fixed a regression in which an external slot got accidentally changed into a sprite draw slot
author Michael Pavone <pavone@retrodev.com>
date Thu, 28 Jan 2016 09:10:14 -0800
parents 252dfd29831d
children 08346262990b
comparison
equal deleted inserted replaced
921:2be771c4dfbd 922:913a6336ce20
146 uint32_t debugcolors[1 << (3 + 1 + 1 + 1)];//3 bits for source, 1 bit for priority, 1 bit for shadow, 1 bit for hilight 146 uint32_t debugcolors[1 << (3 + 1 + 1 + 1)];//3 bits for source, 1 bit for priority, 1 bit for shadow, 1 bit for hilight
147 uint16_t vsram[VSRAM_SIZE]; 147 uint16_t vsram[VSRAM_SIZE];
148 uint16_t vscroll_latch[2]; 148 uint16_t vscroll_latch[2];
149 uint32_t frame; 149 uint32_t frame;
150 uint16_t vcounter; 150 uint16_t vcounter;
151 uint16_t hslot; //hcounter/2
152 uint16_t hscroll_a; 151 uint16_t hscroll_a;
153 uint16_t hscroll_b; 152 uint16_t hscroll_b;
153 uint8_t hslot; //hcounter/2
154 uint8_t latched_mode; 154 uint8_t latched_mode;
155 uint8_t sprite_index; 155 uint8_t sprite_index;
156 uint8_t sprite_draws; 156 uint8_t sprite_draws;
157 int8_t slot_counter; 157 int8_t slot_counter;
158 int8_t cur_slot; 158 int8_t cur_slot;