cb4a513a |
1 | // TODO... |
2 | |
3 | #include "../PicoInt.h" |
4 | |
5 | |
6 | static void gfx_cd_start(void) |
7 | { |
8 | dprintf("gfx_cd_start()"); |
9 | if (Pico_mcd->s68k_regs[0x33] & (1<<1)) |
10 | { |
11 | dprintf("gfx_cd irq 1"); |
12 | SekInterruptS68k(1); |
13 | } |
14 | } |
15 | |
16 | void gfx_cd_update(void) |
17 | { |
18 | } |
19 | |
20 | |
21 | unsigned int gfx_cd_read(unsigned int a) |
22 | { |
23 | dprintf("gfx_cd_read(%x)", a); |
24 | |
25 | // switch (a) { |
26 | // case 2: |
27 | // return; |
28 | return 0; |
29 | } |
30 | |
31 | void gfx_cd_write(unsigned int a, unsigned int d) |
32 | { |
33 | dprintf("gfx_cd_write(%x, %04x)", a, d); |
34 | |
35 | switch (a) { |
36 | case 0x66: |
37 | if (Pico_mcd->s68k_regs[3]&4) return; // can't do tanformations in 1M mode |
38 | gfx_cd_start(); |
39 | return; |
40 | } |
41 | } |
42 | |