.define CYCLES_FOR_UPDATE 40 .define VRC6 1 ; cfm = 39,72,99,126 ; 1channel ; 2channels ; 3channels ; 4channels .if CHCOUNT=1 .define CYCLES_FOR_MIXING 39 .elseif CHCOUNT=2 .define CYCLES_FOR_MIXING 72 .elseif CHCOUNT=3 .define CYCLES_FOR_MIXING 99 .elseif CHCOUNT=4 .define CYCLES_FOR_MIXING 126 .endif ;sr=1789773/cps ;------------------------------------------------------------------------------- ; registers ;------------------------------------------------------------------------------- APU_CTRL := 4015h DAC := 4011h .globalzp __update_vector update_vector := __update_vector+1 .macro nop3 sta dummy .endmacro ;------------------------------------------------------------------------------ ; macro for returning from update routines ; ; jumps to proper return address depending on how many cycles were used ;------------------------------------------------------------------------------ .macro uret vector, cycles lda #