src/mame/machine/stvcd.c
| r12351 | r12352 | |
| 611 | 611 | // CDROM_LOG(("WW CR4: %04x\n", data)) |
| 612 | 612 | cr4 = data; |
| 613 | 613 | if(cr1 != 0 && ((cr1 & 0xff00) != 0x5100) && 1) |
| 614 | | printf("CD: command exec %02x %02x %02x %02x %02x (stat %04x)\n", hirqreg, cr1, cr2, cr3, cr4, cd_stat); |
| 614 | printf("CD: command exec %04x %04x %04x %04x %04x (stat %04x)\n", hirqreg, cr1, cr2, cr3, cr4, cd_stat); |
| 615 | 615 | |
| 616 | 616 | if (!cdrom) |
| 617 | 617 | { |
| r12351 | r12352 | |
| 808 | 808 | } |
| 809 | 809 | else // play until the end of the disc |
| 810 | 810 | { |
| 811 | | UINT32 start_pos; |
| 811 | UINT32 start_pos,end_pos; |
| 812 | 812 | |
| 813 | 813 | start_pos = ((cr1&0xff)<<16) | cr2; |
| 814 | end_pos = ((cr3&0xff)<<16) | cr4; |
| 814 | 815 | |
| 815 | 816 | if(start_pos != 0xffffff) |
| 816 | 817 | { |
| 817 | | fadstoplay = (cdrom_get_track_start(cdrom, 0xaa)) - cd_curfad; |
| 818 | /* Madou Monogatari sets 0xff80xxxx as end position, needs investigation ... */ |
| 819 | if(end_pos & 0x800000) |
| 820 | fadstoplay = end_pos & 0xfffff; |
| 821 | else |
| 822 | fadstoplay = (cdrom_get_track_start(cdrom, 0xaa)) - cd_curfad; |
| 818 | 823 | printf("track mode %08x %08x\n",cd_curfad,fadstoplay); |
| 819 | 824 | } |
| 820 | 825 | else /* Galaxy Fight calls 10ff ffff ffff ffff, resume/restart previously called track */ |
src/mame/drivers/saturn.c
| r12351 | r12352 | |
| 1810 | 1810 | else |
| 1811 | 1811 | state->m_scu.ist |= (IRQ_VBLANK_IN); |
| 1812 | 1812 | |
| 1813 | video_update_vdp1(timer.machine()); |
| 1814 | |
| 1813 | 1815 | if(!(state->m_scu.ism & IRQ_VDP1_END)) |
| 1814 | 1816 | { |
| 1815 | 1817 | device_set_input_line_and_vector(state->m_maincpu, 0x2, HOLD_LINE, 0x4d); |
| r12351 | r12352 | |
| 1818 | 1820 | else |
| 1819 | 1821 | state->m_scu.ist |= (IRQ_VDP1_END); |
| 1820 | 1822 | |
| 1821 | | video_update_vdp1(timer.machine()); |
| 1822 | 1823 | } |
| 1823 | 1824 | else if((scanline % y_step) == 0 && scanline < vblank_line*y_step) |
| 1824 | 1825 | { |