[Core/CD] code cleanup

This commit is contained in:
ekeeke 2019-11-28 00:20:35 +01:00
parent e455861255
commit 0628db556f
2 changed files with 7 additions and 7 deletions

View File

@ -643,7 +643,7 @@ unsigned char cdc_reg_r(void)
/* clear pending decoder interrupt */ /* clear pending decoder interrupt */
cdc.ifstat |= BIT_DECI; cdc.ifstat |= BIT_DECI;
#if 0 #if 0
/* no pending data transfer end interrupt */ /* no pending data transfer end interrupt */
if ((cdc.ifstat | BIT_DTEI) || !(cdc.ifctrl & BIT_DTEIEN)) if ((cdc.ifstat | BIT_DTEI) || !(cdc.ifctrl & BIT_DTEIEN))

View File

@ -47,10 +47,10 @@ void word_ram_0_dma_w(unsigned int words)
/* CDC buffer source address */ /* CDC buffer source address */
uint16 src_index = cdc.dac.w & 0x3ffe; uint16 src_index = cdc.dac.w & 0x3ffe;
/* WORD-RAM destination address*/ /* WORD-RAM destination address*/
uint32 dst_index = (scd.regs[0x0a>>1].w << 3) & 0x1fffe; uint32 dst_index = (scd.regs[0x0a>>1].w << 3) & 0x1fffe;
/* update DMA destination address */ /* update DMA destination address */
scd.regs[0x0a>>1].w += (words >> 2); scd.regs[0x0a>>1].w += (words >> 2);
@ -80,10 +80,10 @@ void word_ram_1_dma_w(unsigned int words)
/* CDC buffer source address */ /* CDC buffer source address */
uint16 src_index = cdc.dac.w & 0x3ffe; uint16 src_index = cdc.dac.w & 0x3ffe;
/* WORD-RAM destination address*/ /* WORD-RAM destination address*/
uint32 dst_index = ((scd.regs[0x0a>>1].w << 3) & 0x1fffe); uint32 dst_index = ((scd.regs[0x0a>>1].w << 3) & 0x1fffe);
/* update DMA destination address */ /* update DMA destination address */
scd.regs[0x0a>>1].w += (words >> 2); scd.regs[0x0a>>1].w += (words >> 2);
@ -113,10 +113,10 @@ void word_ram_2M_dma_w(unsigned int words)
/* CDC buffer source address */ /* CDC buffer source address */
uint16 src_index = cdc.dac.w & 0x3ffe; uint16 src_index = cdc.dac.w & 0x3ffe;
/* WORD-RAM destination address*/ /* WORD-RAM destination address*/
uint32 dst_index = (scd.regs[0x0a>>1].w << 3) & 0x3fffe; uint32 dst_index = (scd.regs[0x0a>>1].w << 3) & 0x3fffe;
/* update DMA destination address */ /* update DMA destination address */
scd.regs[0x0a>>1].w += (words >> 2); scd.regs[0x0a>>1].w += (words >> 2);