mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
cd: switch to CD drive emu code from genplus
same license, much cleaner code
This commit is contained in:
parent
3f23709ef3
commit
274fcc35aa
25 changed files with 1798 additions and 1824 deletions
|
@ -341,19 +341,6 @@ update_dma:
|
|||
Pico_mcd->s68k_regs[0x0b] = dma_addr;
|
||||
}
|
||||
|
||||
// tmp
|
||||
static void cdd_read_data(uint8 *dst)
|
||||
{
|
||||
int lba = Pico_mcd->scd.Cur_LBA;
|
||||
|
||||
/* only read DATA track sectors */
|
||||
if (0 <= lba && lba < Pico_mcd->TOC.Tracks[0].Length)
|
||||
{
|
||||
/* read sector data (Mode 1 = 2048 bytes) */
|
||||
PicoCDBufferRead(dst, lba);
|
||||
}
|
||||
}
|
||||
|
||||
void cdc_dma_update(void)
|
||||
{
|
||||
/* end of DMA transfer ? */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue