Mercurial > repos > blastem
comparison vdp.h @ 424:7e8e179116af
Add support for loading GST format savestates
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 29 Jun 2013 17:15:08 -0700 |
parents | 36fbbced25c2 |
children | add9e2f5c0e3 |
comparison
equal
deleted
inserted
replaced
423:8e136187c0e0 | 424:7e8e179116af |
---|---|
154 void vdp_run_context(vdp_context * context, uint32_t target_cycles); | 154 void vdp_run_context(vdp_context * context, uint32_t target_cycles); |
155 //runs from current cycle count to VBLANK for the current mode, returns ending cycle count | 155 //runs from current cycle count to VBLANK for the current mode, returns ending cycle count |
156 uint32_t vdp_run_to_vblank(vdp_context * context); | 156 uint32_t vdp_run_to_vblank(vdp_context * context); |
157 //runs until the target cycle is reached or the current DMA operation has completed, whicever comes first | 157 //runs until the target cycle is reached or the current DMA operation has completed, whicever comes first |
158 void vdp_run_dma_done(vdp_context * context, uint32_t target_cycles); | 158 void vdp_run_dma_done(vdp_context * context, uint32_t target_cycles); |
159 void vdp_load_savestate(vdp_context * context, FILE * state_file); | 159 uint8_t vdp_load_gst(vdp_context * context, FILE * state_file); |
160 void vdp_save_state(vdp_context * context, FILE * outfile); | 160 void vdp_save_state(vdp_context * context, FILE * outfile); |
161 int vdp_control_port_write(vdp_context * context, uint16_t value); | 161 int vdp_control_port_write(vdp_context * context, uint16_t value); |
162 int vdp_data_port_write(vdp_context * context, uint16_t value); | 162 int vdp_data_port_write(vdp_context * context, uint16_t value); |
163 uint16_t vdp_control_port_read(vdp_context * context); | 163 uint16_t vdp_control_port_read(vdp_context * context); |
164 uint16_t vdp_data_port_read(vdp_context * context); | 164 uint16_t vdp_data_port_read(vdp_context * context); |