From e88632e2aee3bb60d5ddf197d5b0fd1c24a0c059 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Tue, 18 Dec 2012 19:51:33 -0800 Subject: Fix CRAM and possibly VSRAM writes --- vdp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vdp.h') diff --git a/vdp.h b/vdp.h index 3016561..85ba665 100644 --- a/vdp.h +++ b/vdp.h @@ -70,7 +70,7 @@ typedef struct { fifo_entry *fifo_end; uint16_t address; uint8_t cd; - uint8_t flags; + uint8_t flags; //cycle count in MCLKs uint32_t cycles; uint8_t *vdpmem; @@ -102,6 +102,7 @@ void vdp_run_context(vdp_context * context, uint32_t target_cycles); //runs from current cycle count to VBLANK for the current mode, returns ending cycle count uint32_t vdp_run_to_vblank(vdp_context * context); void vdp_load_savestate(vdp_context * context, FILE * state_file); +void vdp_save_state(vdp_context * context, FILE * outfile); void vdp_control_port_write(vdp_context * context, uint16_t value); void vdp_data_port_write(vdp_context * context, uint16_t value); uint16_t vdp_control_port_read(vdp_context * context); -- cgit v1.2.3