Subversion Repositories svn.mios

Rev

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

Rev 805 Rev 869
Line 1... Line 1...
1
; $Id: cs_menu_print.inc 805 2009-08-29 19:07:53Z tk $
1
; $Id: cs_menu_print.inc 869 2009-12-08 21:52:43Z tk $
2
;
2
;
3
; SID Control Surface Menu Parameter Print Functions
3
; SID Control Surface Menu Parameter Print Functions
4
;
4
;
5
; ==========================================================================
5
; ==========================================================================
6
;
6
;
Line 1473... Line 1473...
1473
	movlw	' '
1473
	movlw	' '
1474
	rgoto	CS_MENU_PRINT_Char
1474
	rgoto	CS_MENU_PRINT_Char
1475
1475
1476
; --------------------------------------------------------------------------
1476
; --------------------------------------------------------------------------
1477
CS_MENU_PRINT_SAVE_BNK
1477
CS_MENU_PRINT_SAVE_BNK
-
 
1478
	;; flashing if second menu item selected (dirty, but the user won't see this code... ;)
-
 
1479
	;; this method has a second "advantage" (or side effect?):
-
 
1480
	;; the real bank number will be disabled for a short moment if internal patch selected
-
 
1481
	BRA_IFCLR CS_STAT, CS_STAT_MODIFY_PARAMETER, ACCESS, CS_MENU_PRINT_SAVE_BNK_NoFlash
-
 
1482
	BRA_IFCLR CS_STAT, CS_STAT_CURSOR_FLASH, ACCESS, CS_MENU_PRINT_SAVE_BNK_Flash
-
 
1483
-
 
1484
CS_MENU_PRINT_SAVE_BNK_NoFlash
1478
	movff	CS_MENU_SAVE_BANK, SID_BANK
1485
	movff	CS_MENU_SAVE_BANK, SID_BANK
1479
	movff	CS_MENU_SAVE_PATCH, SID_PATCH
1486
	movff	CS_MENU_SAVE_PATCH, SID_PATCH
1480
	call	SID_PBANK_CheckPatchValid
1487
	call	SID_PBANK_CheckPatchValid
1481
	bz	CS_MENU_PRINT_SAVE_BAK_Ok
1488
	bz	CS_MENU_PRINT_SAVE_BNK_Ok
1482
	movf	SID_BANK, W	; always allow to store in bank #0
1489
	movf	SID_BANK, W	; always allow to store in bank #0
1483
	bz	CS_MENU_PRINT_SAVE_BAK_Ok
1490
	bz	CS_MENU_PRINT_SAVE_BNK_Ok
1484
	
1491
	
1485
CS_MENU_PRINT_SAVE_BNK_Inv
1492
CS_MENU_PRINT_SAVE_BNK_Inv
1486
	movf	CS_MENU_SAVE_BANK, W
1493
	movf	CS_MENU_SAVE_BANK, W
1487
	addlw	'A'
1494
	addlw	'A'
1488
	rcall	CS_MENU_PRINT_Char
1495
	rcall	CS_MENU_PRINT_Char
-
 
1496
1489
	movlw	'-'
1497
	movlw	'-'
1490
	rcall	CS_MENU_PRINT_Char
1498
	rcall	CS_MENU_PRINT_Char
1491
	movlw	'-'
1499
	movlw	'-'
1492
	rcall	CS_MENU_PRINT_Char
1500
	rcall	CS_MENU_PRINT_Char
1493
	movlw	'-'
1501
	movlw	'-'
1494
	rcall	CS_MENU_PRINT_Char
1502
	rcall	CS_MENU_PRINT_Char
1495
	movlw	' '
1503
	movlw	' '
1496
	rgoto	CS_MENU_PRINT_Char
1504
	rgoto	CS_MENU_PRINT_Char
1497
1505
1498
CS_MENU_PRINT_SAVE_BAK_Ok
1506
CS_MENU_PRINT_SAVE_BNK_Ok
1499
	movff	CS_MENU_SAVE_BANK, PRODL
1507
	movff	CS_MENU_SAVE_BANK, PRODL
1500
	movff	CS_MENU_SAVE_PATCH, PRODH
1508
	movff	CS_MENU_SAVE_PATCH, PRODH
1501
	call	SID_LCD_PrintPatchNumber
1509
	call	SID_LCD_PrintPatchNumber
1502
	movlw	' '
1510
	movlw	' '
1503
	rgoto	CS_MENU_PRINT_Char
1511
	rgoto	CS_MENU_PRINT_Char
-
 
1512
-
 
1513
-
 
1514
CS_MENU_PRINT_SAVE_BNK_Flash
-
 
1515
	movf	CS_MENU_SAVE_BANK, W
-
 
1516
	addlw	'A'
-
 
1517
	rcall	CS_MENU_PRINT_Char
-
 
1518
	movlw	4
-
 
1519
	goto	SID_LCD_PrintSpaces
-
 
1520
1504
1521
1505
; --------------------------------------------------------------------------
1522
; --------------------------------------------------------------------------
1506
CS_MENU_PRINT_SAVE_PAT
1523
CS_MENU_PRINT_SAVE_PAT
1507
	return			; (already print)
1524
	return			; (already print)
1508
1525