From: Nathaniel Wesley Filardo Date: Mon, 1 Mar 2010 01:09:22 +0000 (-0500) Subject: Make a few things in target/ more config-ifdeffy X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=842260feb23b8acc7b84966c4e1d1097a07cfbce;p=acmetensortoys-chiptunes Make a few things in target/ more config-ifdeffy --- 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() {