From 0628db556f8aa43fa768bac6e8932c5fb2782091 Mon Sep 17 00:00:00 2001 From: ekeeke Date: Thu, 28 Nov 2019 00:20:35 +0100 Subject: [PATCH] [Core/CD] code cleanup --- core/cd_hw/cdc.c | 2 +- core/cd_hw/gfx.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/cd_hw/cdc.c b/core/cd_hw/cdc.c index 4036c49..7af5ed3 100644 --- a/core/cd_hw/cdc.c +++ b/core/cd_hw/cdc.c @@ -643,7 +643,7 @@ unsigned char cdc_reg_r(void) /* clear pending decoder interrupt */ cdc.ifstat |= BIT_DECI; - + #if 0 /* no pending data transfer end interrupt */ if ((cdc.ifstat | BIT_DTEI) || !(cdc.ifctrl & BIT_DTEIEN)) diff --git a/core/cd_hw/gfx.c b/core/cd_hw/gfx.c index 811995c..9c4d68d 100644 --- a/core/cd_hw/gfx.c +++ b/core/cd_hw/gfx.c @@ -47,10 +47,10 @@ void word_ram_0_dma_w(unsigned int words) /* CDC buffer source address */ uint16 src_index = cdc.dac.w & 0x3ffe; - + /* WORD-RAM destination address*/ uint32 dst_index = (scd.regs[0x0a>>1].w << 3) & 0x1fffe; - + /* update DMA destination address */ scd.regs[0x0a>>1].w += (words >> 2); @@ -80,10 +80,10 @@ void word_ram_1_dma_w(unsigned int words) /* CDC buffer source address */ uint16 src_index = cdc.dac.w & 0x3ffe; - + /* WORD-RAM destination address*/ uint32 dst_index = ((scd.regs[0x0a>>1].w << 3) & 0x1fffe); - + /* update DMA destination address */ scd.regs[0x0a>>1].w += (words >> 2); @@ -113,10 +113,10 @@ void word_ram_2M_dma_w(unsigned int words) /* CDC buffer source address */ uint16 src_index = cdc.dac.w & 0x3ffe; - + /* WORD-RAM destination address*/ uint32 dst_index = (scd.regs[0x0a>>1].w << 3) & 0x3fffe; - + /* update DMA destination address */ scd.regs[0x0a>>1].w += (words >> 2);