Mercurial > repos > blastem
comparison vdp.h @ 1427:4e5797b3935a
WIP - New savestate format
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 06 Aug 2017 00:06:36 -0700 |
parents | b56c8c51ca5d |
children | 2540c05520f2 |
comparison
equal
deleted
inserted
replaced
1426:957325c990d5 | 1427:4e5797b3935a |
---|---|
7 #define VDP_H_ | 7 #define VDP_H_ |
8 | 8 |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
11 #include "system.h" | 11 #include "system.h" |
12 #include "serialize.h" | |
12 | 13 |
13 #define VDP_REGS 24 | 14 #define VDP_REGS 24 |
14 #define CRAM_SIZE 64 | 15 #define CRAM_SIZE 64 |
15 #define VSRAM_SIZE 40 | 16 #define VSRAM_SIZE 40 |
16 #define VRAM_SIZE (64*1024) | 17 #define VRAM_SIZE (64*1024) |
197 int8_t cur_slot; | 198 int8_t cur_slot; |
198 uint8_t max_sprites_frame; | 199 uint8_t max_sprites_frame; |
199 uint8_t max_sprites_line; | 200 uint8_t max_sprites_line; |
200 uint8_t fetch_tmp[2]; | 201 uint8_t fetch_tmp[2]; |
201 uint8_t v_offset; | 202 uint8_t v_offset; |
202 uint8_t dma_cd; | |
203 uint8_t hint_counter; | 203 uint8_t hint_counter; |
204 uint8_t flags2; | 204 uint8_t flags2; |
205 uint8_t double_res; | 205 uint8_t double_res; |
206 uint8_t b32; | |
207 uint8_t buf_a_off; | 206 uint8_t buf_a_off; |
208 uint8_t buf_b_off; | 207 uint8_t buf_b_off; |
209 uint8_t debug; | 208 uint8_t debug; |
210 uint8_t debug_pal; | 209 uint8_t debug_pal; |
211 uint8_t pending_byte; | 210 uint8_t pending_byte; |
248 void write_cram(vdp_context * context, uint16_t address, uint16_t value); | 247 void write_cram(vdp_context * context, uint16_t address, uint16_t value); |
249 void vdp_check_update_sat_byte(vdp_context *context, uint32_t address, uint8_t value); | 248 void vdp_check_update_sat_byte(vdp_context *context, uint32_t address, uint8_t value); |
250 void vdp_pbc_pause(vdp_context *context); | 249 void vdp_pbc_pause(vdp_context *context); |
251 void vdp_release_framebuffer(vdp_context *context); | 250 void vdp_release_framebuffer(vdp_context *context); |
252 void vdp_reacquire_framebuffer(vdp_context *context); | 251 void vdp_reacquire_framebuffer(vdp_context *context); |
252 void vdp_serialize(vdp_context *context, serialize_buffer *buf); | |
253 void vdp_deserialize(deserialize_buffer *buf, void *vcontext); | |
253 | 254 |
254 #endif //VDP_H_ | 255 #endif //VDP_H_ |