mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 19:28:08 +11:00
d1718a90c7
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.
15 lines
315 B
C
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);
|