summaryrefslogtreecommitdiff
path: root/vdp.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-06-18 16:30:19 -0700
committerMichael Pavone <pavone@retrodev.com>2014-06-18 16:30:19 -0700
commitb28dc876ea3d900787f2c953ddd84056924f7308 (patch)
tree135d55606d603ef1190ead9fa5cfa9d1fa345eec /vdp.h
parent6cd595a305c71f0540a3ecf4c4038891a7eba762 (diff)
Fix most of the breakage caused by the vcounter/hcounter changes
Diffstat (limited to 'vdp.h')
-rw-r--r--vdp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vdp.h b/vdp.h
index 2fa8f36..184521a 100644
--- a/vdp.h
+++ b/vdp.h
@@ -49,6 +49,7 @@
#define FLAG2_HINT_PENDING 0x02
#define FLAG2_READ_PENDING 0x04
#define FLAG2_SPRITE_COLLIDE 0x08
+#define FLAG2_REGION_PAL 0x10
#define DISPLAY_ENABLE 0x40
@@ -169,7 +170,7 @@ typedef struct {
uint8_t *tmp_buf_b;
} vdp_context;
-void init_vdp_context(vdp_context * context);
+void init_vdp_context(vdp_context * context, uint8_t region_pal);
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);
@@ -192,6 +193,7 @@ void vdp_int_ack(vdp_context * context, uint16_t int_num);
void vdp_print_sprite_table(vdp_context * context);
void vdp_print_reg_explain(vdp_context * context);
void latch_mode(vdp_context * context);
+uint32_t vdp_cycles_to_frame_end(vdp_context * context);
extern int32_t color_map[1 << 12];