Subversion Repositories svn.mios

Rev

Rev 653 | Rev 806 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 653 Rev 790
Line 1... Line 1...
1
; $Id: cs_menu.inc 653 2009-01-23 23:18:45Z tk $
1
; $Id: cs_menu.inc 790 2009-06-04 19:16:22Z tk $
2
;
2
;
3
; SID Control Surface Menu Functions
3
; SID Control Surface Menu Functions
4
;
4
;
5
; ==========================================================================
5
; ==========================================================================
6
;
6
;
Line 592... Line 592...
592
592
593
	;; print ensemble number
593
	;; print ensemble number
594
	call	SID_LCD_PrintEnsembleNumber
594
	call	SID_LCD_PrintEnsembleNumber
595

595

596
	;; print '*' if ensemble not valid (no BankStick)
596
	;; print '*' if ensemble not valid (no BankStick)
-
 
597
	movf	SID_ENSEMBLE, W	; ensemble 0 always valid (stored in internal EEPROM)
-
 
598
	skpz
597
	call	SID_EBANK_CheckValid
599
	call	SID_EBANK_CheckValid
598
	movlw	' '
600
	movlw	' '
599
	skpz
601
	skpz
600
	movlw	'*'
602
	movlw	'*'
601
	call	MIOS_LCD_PrintChar
603
	call	MIOS_LCD_PrintChar
Line 1749... Line 1751...
1749
;; --------------------------------------------------------------------------
1751
;; --------------------------------------------------------------------------
1750
;;  if ensemble should be saved
1752
;;  if ensemble should be saved
1751
;;  (target ensemble in CS_MENU_SAVE_ENS
1753
;;  (target ensemble in CS_MENU_SAVE_ENS
1752
;; --------------------------------------------------------------------------
1754
;; --------------------------------------------------------------------------
1753
CS_MENU_SaveEns
1755
CS_MENU_SaveEns
-
 
1756
	;; check if saving allowed
-
 
1757
	;; ensemble 0 always alowed
-
 
1758
	movf	CS_MENU_SAVE_ENS, W
-
 
1759
	bz	CS_MENU_SaveEns_Ok
-
 
1760
1754
	call	SID_EBANK_CheckValid
1761
	call	SID_EBANK_CheckValid
1755
	bnz	CS_MENU_SaveEns_End
1762
	bnz	CS_MENU_SaveEns_End
1756
1763
-
 
1764
CS_MENU_SaveEns_Ok
1757
	;; switch to new ensemble
1765
	;; switch to new ensemble
1758
	movff	CS_MENU_SAVE_ENS, SID_ENSEMBLE
1766
	movff	CS_MENU_SAVE_ENS, SID_ENSEMBLE
1759

1767

1760
	;; loop through all SIDs
1768
	;; loop through all SIDs
1761
	clrf	CS_MENU_SID
1769
	clrf	CS_MENU_SID