Subversion Repositories svn.mios

Rev

Rev 860 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 860 Rev 869
Line 1... Line 1...
1
; $Id: cs_menu_matrix.inc 860 2009-11-19 12:31:34Z wilba $
1
; $Id: cs_menu_matrix.inc 869 2009-12-08 21:52:43Z tk $
2
;
2
;
3
; SID Control Surface Modulation Matrix Handler
3
; SID Control Surface Modulation Matrix Handler
4
;
4
;
5
; ==========================================================================
5
; ==========================================================================
6
;
6
;
Line 73... Line 73...
73
	call	MIOS_DOUT_SRSet
73
	call	MIOS_DOUT_SRSet
74
#endif
74
#endif
75
#endif
75
#endif
76
76
77
	;; now determine the pattern for the LED anodes
77
	;; now determine the pattern for the LED anodes
-
 
78
	movf	CS_MENU_REINIT_CFG_CTR, W
-
 
79
	bz	CS_MENU_MATRIX_Handler_NoStartup
-
 
80
CS_MENU_MATRIX_Handler_Startup
-
 
81
	;; christmas lights:
-
 
82
	;; show a (somehow) random pattern
-
 
83
	movf	CS_MENU_MATRIX_CTR, W ; matrix counter
-
 
84
#if DEFAULT_SAMMICHSID_CS
-
 
85
	rcall	CS_MENU_MATRIX_SammichSID_Column_Remap ; remap so that it looks better on a sammichSID
-
 
86
	xorwf	TMR3L, W	; timer3 is MIOS_TIMER -- only for sammichSID
-
 
87
#endif
-
 
88
	xorwf	TMR2, W		; timer2 outputs the 1 MHz clock to the SID
-
 
89
	xorwf	CS_MENU_REINIT_CFG_CTR, W ; xor with running startup counter
-
 
90
	call	MIOS_HLP_GetBitORMask ; show only one LED per update cycle
-
 
91
	movwf	MIOS_PARAMETER1
-
 
92
	rgoto	CS_MENU_MATRIX_Handler_StartupCn
-
 
93
CS_MENU_MATRIX_Handler_NoStartup
-
 
94
78
	BRA_IFSET SID_STAT, SID_STAT_SIDPLAYER_CS_DISABLE, ACCESS, CS_MENU_MATRIX_Handler_SP ; always used in SID player mode
95
	BRA_IFSET SID_STAT, SID_STAT_SIDPLAYER_CS_DISABLE, ACCESS, CS_MENU_MATRIX_Handler_SP ; always used in SID player mode
79
	BRA_IFCLR CS_STAT2, CS_STAT2_LEVEL_METERS, ACCESS, CS_MENU_MATRIX_Handler_NoSP	; optionally used in normal mode
96
	BRA_IFCLR CS_STAT2, CS_STAT2_LEVEL_METERS, ACCESS, CS_MENU_MATRIX_Handler_NoSP	; optionally used in normal mode
80
CS_MENU_MATRIX_Handler_SP
97
CS_MENU_MATRIX_Handler_SP
81
	;; show animated level meters, e.g. triggered by gates
98
	;; show animated level meters, e.g. triggered by gates
82
99
Line 164... Line 181...
164
	call	MIOS_HLP_GetBitORMask
181
	call	MIOS_HLP_GetBitORMask
165
	andwf	CS_MENU_MATRIX_SELECTED_ROW, W
182
	andwf	CS_MENU_MATRIX_SELECTED_ROW, W
166
	skpz
183
	skpz
167
	comf	MIOS_PARAMETER1, F
184
	comf	MIOS_PARAMETER1, F
168
CS_MENU_MATRIX_Handler_NoFlash
185
CS_MENU_MATRIX_Handler_NoFlash
-
 
186
CS_MENU_MATRIX_Handler_StartupCn
169
187
170
#if DEFAULT_MB6582_CS
188
#if DEFAULT_MB6582_CS
171
#if DEFAULT_SRM_MODMATRIX_DOUT
189
#if DEFAULT_SRM_MODMATRIX_DOUT
172
	movlw	(DEFAULT_SRM_MODMATRIX_DOUT-1) & 0xf
190
	movlw	(DEFAULT_SRM_MODMATRIX_DOUT-1) & 0xf
173
	call	MIOS_DOUT_SRSet
191
	call	MIOS_DOUT_SRSet