2020-11-12 11:13:18 -05:00
|
|
|
#include "tms9918.h"
|
2020-01-08 22:06:50 -05:00
|
|
|
|
2020-11-12 11:13:18 -05:00
|
|
|
#define VDP_CRAM_SIZE 0x20
|
2020-01-08 22:06:50 -05:00
|
|
|
|
|
|
|
typedef struct {
|
2020-11-12 11:13:18 -05:00
|
|
|
TMS9918 tms;
|
|
|
|
uint8_t cram[VDP_CRAM_SIZE];
|
2020-01-08 22:06:50 -05:00
|
|
|
} VDP;
|
|
|
|
|
|
|
|
void vdp_init(VDP *vdp);
|
|
|
|
void vdp_cmd_wr(VDP *vdp, uint8_t val);
|
|
|
|
uint8_t vdp_data_rd(VDP *vdp);
|
|
|
|
void vdp_data_wr(VDP *vdp, uint8_t val);
|
|
|
|
uint8_t vdp_pixel(VDP *vdp, uint16_t x, uint16_t y);
|