comparison vdp.h @ 2009:4ace0fef6f8f

Add support for the parts of the KMod debug ports used by SGDK
author Mike Pavone <pavone@retrodev.com>
date Mon, 19 Oct 2020 15:46:16 -0700
parents e45a317802bd
children e7a516f08cec
comparison
equal deleted inserted replaced
2008:a8e3e816a50d 2009:4ace0fef6f8f
89 REG_WINDOW_V, 89 REG_WINDOW_V,
90 REG_DMALEN_L, 90 REG_DMALEN_L,
91 REG_DMALEN_H, 91 REG_DMALEN_H,
92 REG_DMASRC_L, 92 REG_DMASRC_L,
93 REG_DMASRC_M, 93 REG_DMASRC_M,
94 REG_DMASRC_H 94 REG_DMASRC_H,
95 REG_KMOD_CTRL=29,
96 REG_KMOD_MSG,
97 REG_KMOD_TIMER
95 }; 98 };
96 99
97 //Mode reg 1 100 //Mode reg 1
98 #define BIT_VSCRL_LOCK 0x80 101 #define BIT_VSCRL_LOCK 0x80
99 #define BIT_HSCRL_LOCK 0x40 102 #define BIT_HSCRL_LOCK 0x40
166 uint32_t *output; 169 uint32_t *output;
167 //pointer to current framebuffer 170 //pointer to current framebuffer
168 uint32_t *fb; 171 uint32_t *fb;
169 uint8_t *done_composite; 172 uint8_t *done_composite;
170 uint32_t *debug_fbs[VDP_NUM_DEBUG_TYPES]; 173 uint32_t *debug_fbs[VDP_NUM_DEBUG_TYPES];
174 char *kmod_msg_buffer;
175 uint32_t kmod_buffer_storage;
176 uint32_t kmod_buffer_length;
177 uint32_t timer_start_cycle;
171 uint32_t output_pitch; 178 uint32_t output_pitch;
172 uint32_t debug_fb_pitch[VDP_NUM_DEBUG_TYPES]; 179 uint32_t debug_fb_pitch[VDP_NUM_DEBUG_TYPES];
173 fifo_entry fifo[FIFO_SIZE]; 180 fifo_entry fifo[FIFO_SIZE];
174 int32_t fifo_write; 181 int32_t fifo_write;
175 int32_t fifo_read; 182 int32_t fifo_read;