From 3294e5d90bd8bcc745ed1d665b8b9ade2cce1d8e Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 9 Feb 2007 23:39:03 +0000 Subject: [PATCH] fast dma git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@35 be3aeb3a-fb24-0410-a615-afba39da0efa --- gp2x/Makefile | 8 ++++++++ gp2x/emu.c | 1 + linux/940ctl_ym2612.c | 13 ------------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/gp2x/Makefile b/gp2x/Makefile index d4de0ec..899f05f 100644 --- a/gp2x/Makefile +++ b/gp2x/Makefile @@ -11,6 +11,7 @@ dprint = 1 asm_memory = 0 # TODO asm_render = 1 asm_ym2612 = 1 +asm_misc = 1 #profile = 1 #use_musashi = 1 #up = 1 @@ -55,6 +56,10 @@ ifeq "$(asm_ym2612)" "1" DEFINC += -D_ASM_YM2612_C OBJS += ../../Pico/sound/ym2612_asm.o endif +ifeq "$(asm_misc)" "1" +DEFINC += -D_ASM_MISC_C +OBJS += ../../Pico/misc_asm.o +endif # Pico - sound OBJS += ../../Pico/sound/mix_asm.o OBJS += ../../Pico/sound/sound.o ../../Pico/sound/sn76496.o ../../Pico/sound/ym2612.o @@ -128,6 +133,9 @@ testrefr.gpe : test.o gp2x.o asmutils.o ../../Pico/sound/mix_asm.o : ../../Pico/sound/mix.s @echo $< @$(AS) $(ASOPT) $< -o $@ +../../Pico/misc_asm.o : ../../Pico/misc.s + @echo $< + @$(AS) $(ASOPT) $< -o $@ # build Cyclone ../../cpu/Cyclone/proj/Cyclone.s : diff --git a/gp2x/emu.c b/gp2x/emu.c index 36408f4..a5a46ea 100644 --- a/gp2x/emu.c +++ b/gp2x/emu.c @@ -1232,6 +1232,7 @@ if (Pico.m.frame_count == 31563) { // if in 16bit mode, generate 8it image for menu background if (!(PicoOpt&0x10) && (currentConfig.EmuOpt&0x80)) { PicoOpt |= 0x10; + Pico.m.dirtyPal = 1; PicoFrameFull(); blit("", NULL); blit("", NULL); blit("", NULL); blit("", NULL); // be sure buffer3 gets updated PicoOpt &= ~0x10; diff --git a/linux/940ctl_ym2612.c b/linux/940ctl_ym2612.c index 86435e4..451c942 100644 --- a/linux/940ctl_ym2612.c +++ b/linux/940ctl_ym2612.c @@ -224,16 +224,3 @@ int mp3_get_offset(void) } -/* unimplemented... */ -void mix_16h_to_32(int *dest_buf, short *mp3_buf, int count) -{ -} - -void mix_16h_to_32_s1(int *dest_buf, short *mp3_buf, int count) -{ -} - -void mix_16h_to_32_s2(int *dest_buf, short *mp3_buf, int count) -{ -} - -- 2.39.5