-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVDP.h
More file actions
34 lines (28 loc) · 978 Bytes
/
VDP.h
File metadata and controls
34 lines (28 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Megadrive VDP emulation
*/
void draw_cell_pixel(unsigned int cell, int cell_x, int cell_y, int x, int y);
void vdp_render_bg(int line, int priority);
void vdp_render_sprite(int sprite_index, int line);
void vdp_render_sprites(int line, int priority);
void vdp_render_line(int line);
void vdp_set_buffers(unsigned char *screen_buffer, unsigned char *scaled_buffer);
void vdp_debug_status(char *s);
enum ram_type {
T_VRAM,
T_CRAM,
T_VSRAM
};
void vdp_data_write(unsigned int value, enum ram_type type, int dma);
void vdp_data_port_write(unsigned int value);
void vdp_set_reg(int reg, unsigned char value);
unsigned int vdp_get_reg(int reg);
void vdp_control_write(unsigned int value);
void vdp_write(unsigned int address, unsigned int value);
unsigned int vdp_read(unsigned int address);
unsigned int vdp_get_status();
unsigned short vdp_get_cram(int index);
void vdp_set_hblank();
void vdp_clear_hblank();
void vdp_set_vblank();
void vdp_clear_vblank();