Hi,
I used this patch to enable two joysticks in my sid:
USER_AIN_NotifyChange
;; get 7-bit value of pot #00
movlw 0x00
call MIOS_AIN_Pin7bitGet
;; forward value to the CC handler
;; it expects: CC parameter number in WREG
;; CC parameter value in MIOS_PARAMETER1, so:
movwf MIOS_PARAMETER1 ; save 7-bit value in MIOS_PARAMETER1
movlw 0x2F ; control CC #2Fh == Resonance
call SID_CCIN_Set ; call function
;; get 7-bit value of pot #01
movlw 0x01
call MIOS_AIN_Pin7bitGet
;; forward value to the CC handler
;; it expects: CC parameter number in WREG
;; CC parameter value in MIOS_PARAMETER2, so:
movwf MIOS_PARAMETER2 ; save 7-bit value in MIOS_PARAMETER2
movlw 0x2E ; control CC #2Eh == Cutoff
call SID_CCIN_Set ; call function
;; get 7-bit value of pot #02
movlw 0x02
call MIOS_AIN_Pin7bitGet
;; forward value to the CC handler
;; it expects: CC parameter number in WREG
;; CC parameter value in MIOS_PARAMETER1, so:
movwf MIOS_PARAMETER1 ; save 7-bit value in MIOS_PARAMETER1
movlw 0x48 ; control CC #48h == LFO1 Depth
call SID_CCIN_Set ; call function
;; get 7-bit value of pot #03
movlw 0x03
call MIOS_AIN_Pin7bitGet
;; forward value to the CC handler
;; it expects: CC parameter number in WREG
;; CC parameter value in MIOS_PARAMETER2, so:
movwf MIOS_PARAMETER2 ; save 7-bit value in MIOS_PARAMETER2
movlw 0x40 ; control CC #40h == LFO1 Rate
call SID_CCIN_Set ; call function
return ; and exit AIN handle
and it works great… i used this one and not the sid_ain.inc-thing because the display should not be touched at all…
but how can i make the joysticks make send CC’s now?
is there a way without changing or touching the cs?
Chris