From 842260feb23b8acc7b84966c4e1d1097a07cfbce Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sun, 28 Feb 2010 20:09:22 -0500 Subject: [PATCH] Make a few things in target/ more config-ifdeffy --- target/asm.S | 2 ++ target/main.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/target/asm.S b/target/asm.S index 2d1aa85..81459e2 100644 --- a/target/asm.S +++ b/target/asm.S @@ -36,10 +36,12 @@ __vector_14: ; 3 + TARGET_AUDIO_PORT_SHIFT clocks. lds r24, lastsample ; 2 +#ifdef TARGET_AUDIO_PORT .rept TARGET_AUDIO_PORT_SHIFT lsr r24 ; TARGET_AUDIO_PORT_SHIFT .endr out _SFR_IO_ADDR(TARGET_AUDIO_PORT), r24 ; 1 +#endif ; --------------------------------------------- ; Run the noise shift register. diff --git a/target/main.c b/target/main.c index 6541c47..cfa207d 100644 --- a/target/main.c +++ b/target/main.c @@ -305,6 +305,7 @@ static void playroutine() { channel[ch].vpos += channel[ch].vrate; } +#ifdef TARGET_LIGHT_PORT if(light[0]) { light[0]--; TARGET_LIGHT_PORT |= TARGET_LIGHT_ZERO; @@ -317,6 +318,7 @@ static void playroutine() { } else { TARGET_LIGHT_PORT &= ~TARGET_LIGHT_ONE; } +#endif } void initresources() { -- 2.50.1