comparison vdp.h @ 884:252dfd29831d

Selecting a second game from the menu now works
author Michael Pavone <pavone@retrodev.com>
date Fri, 13 Nov 2015 22:56:59 -0800
parents 8f5339961903
children 913a6336ce20
comparison
equal deleted inserted replaced
883:9f149f0e98b7 884:252dfd29831d
174 uint8_t *tmp_buf_a; 174 uint8_t *tmp_buf_a;
175 uint8_t *tmp_buf_b; 175 uint8_t *tmp_buf_b;
176 } vdp_context; 176 } vdp_context;
177 177
178 void init_vdp_context(vdp_context * context, uint8_t region_pal); 178 void init_vdp_context(vdp_context * context, uint8_t region_pal);
179 void vdp_free(vdp_context *context);
179 void vdp_run_context(vdp_context * context, uint32_t target_cycles); 180 void vdp_run_context(vdp_context * context, uint32_t target_cycles);
180 //runs from current cycle count to VBLANK for the current mode, returns ending cycle count 181 //runs from current cycle count to VBLANK for the current mode, returns ending cycle count
181 uint32_t vdp_run_to_vblank(vdp_context * context); 182 uint32_t vdp_run_to_vblank(vdp_context * context);
182 //runs until the target cycle is reached or the current DMA operation has completed, whicever comes first 183 //runs until the target cycle is reached or the current DMA operation has completed, whicever comes first
183 void vdp_run_dma_done(vdp_context * context, uint32_t target_cycles); 184 void vdp_run_dma_done(vdp_context * context, uint32_t target_cycles);