Sonic CD shows Sega logo

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@18 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2007-01-13 21:57:26 +00:00
parent c459aefdad
commit cb4a513a96
6 changed files with 116 additions and 45 deletions

42
Pico/cd/gfx_cd.c Normal file
View file

@ -0,0 +1,42 @@
// TODO...
#include "../PicoInt.h"
static void gfx_cd_start(void)
{
dprintf("gfx_cd_start()");
if (Pico_mcd->s68k_regs[0x33] & (1<<1))
{
dprintf("gfx_cd irq 1");
SekInterruptS68k(1);
}
}
void gfx_cd_update(void)
{
}
unsigned int gfx_cd_read(unsigned int a)
{
dprintf("gfx_cd_read(%x)", a);
// switch (a) {
// case 2:
// return;
return 0;
}
void gfx_cd_write(unsigned int a, unsigned int d)
{
dprintf("gfx_cd_write(%x, %04x)", a, d);
switch (a) {
case 0x66:
if (Pico_mcd->s68k_regs[3]&4) return; // can't do tanformations in 1M mode
gfx_cd_start();
return;
}
}