1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-08 20:28:05 +11:00
collapseos/emul/z80/sms_vdp.h
Virgil Dupras d1718a90c7 sms: add support for VDP's text mode
Because that mode behaves exactly like in a regular TMS9918, a new
driver for TMS9918 has been added in blkfs and SMS' VDP now uses it.

Also, fix broken 5x7 font.
2020-11-13 12:18:00 -05:00

15 lines
315 B
C

#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);