comparison vdp.h @ 149:139e5dcd6aa3

Make writes to control and data port block when DMA is in progress
author Mike Pavone <pavone@retrodev.com>
date Tue, 01 Jan 2013 07:06:57 -0800
parents aa3e1bb338c9
children 7504200cac86
comparison
equal deleted inserted replaced
148:4a400aec81bb 149:139e5dcd6aa3
124 //runs until the target cycle is reached or the current DMA operation has completed, whicever comes first 124 //runs until the target cycle is reached or the current DMA operation has completed, whicever comes first
125 void vdp_run_dma_done(vdp_context * context, uint32_t target_cycles); 125 void vdp_run_dma_done(vdp_context * context, uint32_t target_cycles);
126 void vdp_load_savestate(vdp_context * context, FILE * state_file); 126 void vdp_load_savestate(vdp_context * context, FILE * state_file);
127 void vdp_save_state(vdp_context * context, FILE * outfile); 127 void vdp_save_state(vdp_context * context, FILE * outfile);
128 int vdp_control_port_write(vdp_context * context, uint16_t value); 128 int vdp_control_port_write(vdp_context * context, uint16_t value);
129 void vdp_data_port_write(vdp_context * context, uint16_t value); 129 int vdp_data_port_write(vdp_context * context, uint16_t value);
130 uint16_t vdp_control_port_read(vdp_context * context); 130 uint16_t vdp_control_port_read(vdp_context * context);
131 uint16_t vdp_data_port_read(vdp_context * context); 131 uint16_t vdp_data_port_read(vdp_context * context);
132 uint16_t vdp_hv_counter_read(vdp_context * context); 132 uint16_t vdp_hv_counter_read(vdp_context * context);
133 void vdp_adjust_cycles(vdp_context * context, uint32_t deduction); 133 void vdp_adjust_cycles(vdp_context * context, uint32_t deduction);
134 134