Added dummy BT485 emulation for logging purposes, proper BT485 implementation to come.

This commit is contained in:
OBattler
2016-07-23 15:34:06 +02:00
parent 455baf46f2
commit 7612b42d95
3 changed files with 206 additions and 7 deletions

15
src/vid_bt485_ramdac.h Normal file
View File

@@ -0,0 +1,15 @@
typedef struct bt485_ramdac_t
{
int magic_count;
uint8_t command;
int windex, rindex;
uint16_t regs[256];
int reg_ff;
int rs2;
int rs3;
} bt485_ramdac_t;
void bt485_ramdac_out(uint16_t addr, uint8_t val, sdac_ramdac_t *ramdac, svga_t *svga);
uint8_t bt485_ramdac_in(uint16_t addr, sdac_ramdac_t *ramdac, svga_t *svga);
float bt485_getclock(int clock, void *p);