great! 
nowbut after trying it i found that i need one more step…
since the CC dump is flowing from the SID (CC=16 due to other hardware devices) to my midibox 16E (CC=1) i’d like to change the SID CC dump channel number output, if it’s possible…
i had a look on the SIC_CCOUT.INC
in particular in this section:
SID_CCOUT_Handler_Loop
movf TMP1, W
call SID_CCOUT_Get ; get CC parameter value
movwf TMP2 ; store value in TMP2
IFSET TMP2, 7, rgoto SID_CCOUT_Handler_Next ; (returns WREG[7] if non-CC value)
;; send CC
movff SID_V1_BASE + SID_Vx_MIDI_CHANNEL, WREG
iorlw 0xb0
call MIOS_MIDI_TxBufferPut
movf TMP1, W
call MIOS_MIDI_TxBufferPut
movf TMP2, W
call MIOS_MIDI_TxBufferPut
movlw 8 ; add a short delay of 8 mS for slow sequencers
call MIOS_Delay
i have tried, with no success, to work on the first lines of ;;send CC
movff SID_V1_BASE + SID_Vx_MIDI_CHANNEL, WREG
iorlw 0xb0
call MIOS_MIDI_TxBufferPut
but since i don’t know the exact meaning of the parameters and how to handle them i moved with eyes closed and tried (i want to output midi data on channel 1):
movff 0x01 + SID_Vx_MIDI_CHANNEL, WREG
iorlw 0xb0
call MIOS_MIDI_TxBufferPut
movff 0x01 WREG
iorlw 0xb0
call MIOS_MIDI_TxBufferPut
movff SID_V1_BASE + 0x01, WREG
iorlw 0xb0
call MIOS_MIDI_TxBufferPut
neither of these worked… my last try was:
movff SID_V1_BASE + SID_Vx_MIDI_CHANNEL, WREG
iorlw 0xb1
call MIOS_MIDI_TxBufferPut
knowing that 0xb0 output a CC MIDI message on channel “0”… i assumed 0 as the “preset sid channel”, and tried to change it to 1, but this time the result was a series of CC ouput to chennl 16 (my default channel)…
is there a simple workaround?