1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-02 05:10:56 +11:00
collapseos/emul/z80/sms_vdp.h

15 lines
315 B
C
Raw Normal View History

#include "tms9918.h"
#define VDP_CRAM_SIZE 0x20
typedef struct {
TMS9918 tms;
uint8_t cram[VDP_CRAM_SIZE];
} 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);