comparison vdp.h @ 451:b7c3b2d22858

Added support for saving savestates. Added gst savestate format test harness
author Mike Pavone <pavone@retrodev.com>
date Fri, 26 Jul 2013 19:55:04 -0700
parents afbea09d7fb4
children 788ba843a731
comparison
equal deleted inserted replaced
448:e85a107e6ec0 451:b7c3b2d22858
162 //runs from current cycle count to VBLANK for the current mode, returns ending cycle count 162 //runs from current cycle count to VBLANK for the current mode, returns ending cycle count
163 uint32_t vdp_run_to_vblank(vdp_context * context); 163 uint32_t vdp_run_to_vblank(vdp_context * context);
164 //runs until the target cycle is reached or the current DMA operation has completed, whicever comes first 164 //runs until the target cycle is reached or the current DMA operation has completed, whicever comes first
165 void vdp_run_dma_done(vdp_context * context, uint32_t target_cycles); 165 void vdp_run_dma_done(vdp_context * context, uint32_t target_cycles);
166 uint8_t vdp_load_gst(vdp_context * context, FILE * state_file); 166 uint8_t vdp_load_gst(vdp_context * context, FILE * state_file);
167 void vdp_save_state(vdp_context * context, FILE * outfile); 167 uint8_t vdp_save_gst(vdp_context * context, FILE * outfile);
168 int vdp_control_port_write(vdp_context * context, uint16_t value); 168 int vdp_control_port_write(vdp_context * context, uint16_t value);
169 int vdp_data_port_write(vdp_context * context, uint16_t value); 169 int vdp_data_port_write(vdp_context * context, uint16_t value);
170 uint16_t vdp_control_port_read(vdp_context * context); 170 uint16_t vdp_control_port_read(vdp_context * context);
171 uint16_t vdp_data_port_read(vdp_context * context); 171 uint16_t vdp_data_port_read(vdp_context * context);
172 uint16_t vdp_hv_counter_read(vdp_context * context); 172 uint16_t vdp_hv_counter_read(vdp_context * context);
175 uint32_t vdp_next_vint(vdp_context * context); 175 uint32_t vdp_next_vint(vdp_context * context);
176 uint32_t vdp_next_vint_z80(vdp_context * context); 176 uint32_t vdp_next_vint_z80(vdp_context * context);
177 void vdp_int_ack(vdp_context * context, uint16_t int_num); 177 void vdp_int_ack(vdp_context * context, uint16_t int_num);
178 void vdp_print_sprite_table(vdp_context * context); 178 void vdp_print_sprite_table(vdp_context * context);
179 void vdp_print_reg_explain(vdp_context * context); 179 void vdp_print_reg_explain(vdp_context * context);
180 void latch_mode(vdp_context * context);
181
182 extern int32_t color_map[1 << 12];
180 183
181 #endif //VDP_H_ 184 #endif //VDP_H_