mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
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:
parent
c459aefdad
commit
cb4a513a96
6 changed files with 116 additions and 45 deletions
42
Pico/cd/gfx_cd.c
Normal file
42
Pico/cd/gfx_cd.c
Normal 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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue