Subversion Repositories svn.mios

Rev

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

Rev 880 Rev 1230
Line 1... Line 1...
1
; $Id: cs_menu_buttons.inc 880 2010-01-03 20:59:49Z tk $
1
; $Id: cs_menu_buttons.inc 1230 2018-08-25 23:22:37Z tk $
2
;
2
;
3
; SID Control Surface Button Handler
3
; SID Control Surface Button Handler
4
;
4
;
5
; ==========================================================================
5
; ==========================================================================
6
;
6
;
Line 1154... Line 1154...
1154
	return
1154
	return
1155

1155

1156
1156
1157
CS_MENU_BUTTON_M_SetCol_1_B
1157
CS_MENU_BUTTON_M_SetCol_1_B
1158
	lfsr	FSR0, SID_EDIT_BUFFER + SID_Ix_B_S1V1_BASE + SID_Ix_B_Vx_SEQ_NUM
1158
	lfsr	FSR0, SID_EDIT_BUFFER + SID_Ix_B_S1V1_BASE + SID_Ix_B_Vx_SEQ_NUM
-
 
1159
	;; special handling: if same sequence already selected, disable it
-
 
1160
	movf	CS_MENU_SELECTED_MOD_TARG, W
-
 
1161
	xorwf	INDF0, W
-
 
1162
	bnz	CS_MENU_BUTTON_M_SetCol_1_B_NotEq
-
 
1163
	movlw	0x08
-
 
1164
	movwf	INDF0
-
 
1165
	rgoto	CS_MENU_BUTTON_M_SetCol_1_B_Eq
-
 
1166
CS_MENU_BUTTON_M_SetCol_1_B_NotEq	
1159
	movff	CS_MENU_SELECTED_MOD_TARG, INDF0
1167
	movff	CS_MENU_SELECTED_MOD_TARG, INDF0
-
 
1168
CS_MENU_BUTTON_M_SetCol_1_B_Eq
1160
	call	CS_MENU_MS_SendParameter
1169
	call	CS_MENU_MS_SendParameter
1161
	;; change sequence (don't switch to SEQ menu, this disturbs the useflow)
1170
	;; change sequence (don't switch to SEQ menu, this disturbs the useflow)
1162
	movff	CS_MENU_SELECTED_MOD_TARG, CS_MENU_WT_SEQ
1171
	movff	CS_MENU_SELECTED_MOD_TARG, CS_MENU_WT_SEQ
1163
	rgoto	CS_MENU_BUTTON_DisplayUpdateReq
1172
	rgoto	CS_MENU_BUTTON_DisplayUpdateReq
1164
1173
1165
	
1174
	
1166
CS_MENU_BUTTON_M_SetCol_1_DM
1175
CS_MENU_BUTTON_M_SetCol_1_DM
1167
	BRA_IFSET WREG, 0, ACCESS, CS_MENU_BUTTON_M_SetCol_1_M
1176
	BRA_IFSET WREG, 0, ACCESS, CS_MENU_BUTTON_M_SetCol_1_M
1168
CS_MENU_BUTTON_M_SetCol_1_D
1177
CS_MENU_BUTTON_M_SetCol_1_D
1169
	lfsr	FSR0, SID_EDIT_BUFFER + SID_Ix_D_SEQ_NUM
1178
	lfsr	FSR0, SID_EDIT_BUFFER + SID_Ix_D_SEQ_NUM
-
 
1179
	;; special handling: if same sequence already selected, disable it
-
 
1180
	movf	CS_MENU_SELECTED_MOD_TARG, W
-
 
1181
	xorwf	INDF0, W
-
 
1182
	bnz	CS_MENU_BUTTON_M_SetCol_1_D_NotEq
-
 
1183
	movlw	0x08
-
 
1184
	movwf	INDF0
-
 
1185
	rgoto	CS_MENU_BUTTON_M_SetCol_1_D_Eq
-
 
1186
CS_MENU_BUTTON_M_SetCol_1_D_NotEq
1170
	movff	CS_MENU_SELECTED_MOD_TARG, INDF0
1187
	movff	CS_MENU_SELECTED_MOD_TARG, INDF0
-
 
1188
CS_MENU_BUTTON_M_SetCol_1_D_Eq
1171
	call	CS_MENU_MS_SendParameter
1189
	call	CS_MENU_MS_SendParameter
1172
	;; change sequence
1190
	;; change sequence
1173
	movff	CS_MENU_SELECTED_MOD_TARG, CS_MENU_WT_SEQ
1191
	movff	CS_MENU_SELECTED_MOD_TARG, CS_MENU_WT_SEQ
1174
	rgoto	CS_MENU_BUTTON_DisplayUpdateReq
1192
	rgoto	CS_MENU_BUTTON_DisplayUpdateReq
1175
	return
1193
	return
Line 1283... Line 1301...
1283
	rgoto	CS_MENU_BUTTON_Hlp_MenuChange
1301
	rgoto	CS_MENU_BUTTON_Hlp_MenuChange
1284

1302

1285
1303
1286
CS_MENU_BUTTON_M_SetRow_B
1304
CS_MENU_BUTTON_M_SetRow_B
1287
	lfsr	FSR0, SID_EDIT_BUFFER + SID_Ix_B_S2V1_BASE + SID_Ix_B_Vx_SEQ_NUM
1305
	lfsr	FSR0, SID_EDIT_BUFFER + SID_Ix_B_S2V1_BASE + SID_Ix_B_Vx_SEQ_NUM
-
 
1306
	;; special handling: if same sequence already selected, disable it
-
 
1307
	movf	CS_MENU_SELECTED_MOD_SRC, W
-
 
1308
	xorwf	INDF0, W
-
 
1309
	bnz	CS_MENU_BUTTON_M_SetRow_B_NotEq
-
 
1310
	movlw	0x08
-
 
1311
	movwf	INDF0
-
 
1312
	rgoto	CS_MENU_BUTTON_M_SetRow_B_Eq
-
 
1313
CS_MENU_BUTTON_M_SetRow_B_NotEq
1288
	movff	CS_MENU_SELECTED_MOD_SRC, INDF0
1314
	movff	CS_MENU_SELECTED_MOD_SRC, INDF0
-
 
1315
CS_MENU_BUTTON_M_SetRow_B_Eq
1289
	call	CS_MENU_MS_SendParameter
1316
	call	CS_MENU_MS_SendParameter
1290
	;; change sequence (don't switch to SEQ menu, this disturbs the useflow)
1317
	;; change sequence (don't switch to SEQ menu, this disturbs the useflow)
1291
	movff	CS_MENU_SELECTED_MOD_SRC, CS_MENU_WT_SEQ
1318
	movff	CS_MENU_SELECTED_MOD_SRC, CS_MENU_WT_SEQ
1292
	rgoto	CS_MENU_BUTTON_DisplayUpdateReq
1319
	rgoto	CS_MENU_BUTTON_DisplayUpdateReq
1293
1320