comparison code_part1/OSTC_code_asm_part1/menu_reset.asm @ 609:bbf5e1506c39

2.27beta
author heinrichsweikamp
date Sat, 07 Jul 2012 09:09:55 +0200
parents c3336f944e53
children 3ab53b57f879
comparison
equal deleted inserted replaced
606:4f43aee67da0 609:bbf5e1506c39
186 CF_DEFAULT CF_BOOL, 0, 0, 0 ; CF60 Show Graphical ascend speed indicator 186 CF_DEFAULT CF_BOOL, 0, 0, 0 ; CF60 Show Graphical ascend speed indicator
187 CF_DEFAULT CF_BOOL, 0, 0, 0 ; CF61 Show pSCR ppO2 187 CF_DEFAULT CF_BOOL, 0, 0, 0 ; CF61 Show pSCR ppO2
188 188
189 CF_DEFAULT CF_PERCENT, .4, .0, .100 ; CF62 pSCR O2 Drop 189 CF_DEFAULT CF_PERCENT, .4, .0, .100 ; CF62 pSCR O2 Drop
190 CF_DEFAULT CF_INT8, .10, .0, .100 ; CF63 pSCR counterlung ratio 190 CF_DEFAULT CF_INT8, .10, .0, .100 ; CF63 pSCR counterlung ratio
191
192 ;---- BANK2 custom function defaults -------------------------------------
191 cf_default_table2: 193 cf_default_table2:
192 CF_DEFAULT CF_COLOR, d'74', 0, 0 ; CF64 color_inactive Color inactive: grey 194 CF_DEFAULT CF_COLOR, d'74', 0, 0 ; CF64 color_inactive Color inactive: grey
193 CF_DEFAULT CF_BOOL, 0, 0, 0 ; CF65 Show safety stop 195 CF_DEFAULT CF_BOOL, 0, 0, 0 ; CF65 Show safety stop
194 CF_DEFAULT CF_INT8, d'0', d'0', d'0' ; CF66 unused 196 CF_DEFAULT CF_INT8, d'0', d'0', d'0' ; CF66 unused
195 CF_DEFAULT CF_INT8, d'0', d'0', d'0' ; CF67 unused 197 CF_DEFAULT CF_INT8, d'0', d'0', d'0' ; CF67 unused
431 reset_all_cf_bank1: 433 reset_all_cf_bank1:
432 movlw d'1' 434 movlw d'1'
433 movwf EEADRH ; EEPROM BANK 1 435 movwf EEADRH ; EEPROM BANK 1
434 movlw d'127' ; address of low byte of first custom function 436 movlw d'127' ; address of low byte of first custom function
435 movwf EEADR 437 movwf EEADR
438
439 movlw LOW cf_default_table1 ; Load PROM pointer.
440 movwf TBLPTRL,A
441 movlw HIGH cf_default_table1
442 movwf TBLPTRH,A
443 movlw UPPER cf_default_table1
444 movwf TBLPTRU,A
445
436 446
437 cf_bank1_loop: 447 cf_bank1_loop:
438 ; Did we already read another 32 (decimal) words or double-words ? 448 ; Did we already read another 32 (decimal) words or double-words ?
439 movf TBLPTRL,W 449 movf TBLPTRL,W
440 sublw LOW (cf_default_table2) 450 sublw LOW (cf_default_table2)
445 reset_all_cf_bank2: 455 reset_all_cf_bank2:
446 movlw d'2' 456 movlw d'2'
447 movwf EEADRH ; EEPROM BANK 2 457 movwf EEADRH ; EEPROM BANK 2
448 movlw d'127' ; address of low byte of first custom function 458 movlw d'127' ; address of low byte of first custom function
449 movwf EEADR 459 movwf EEADR
460
461 movlw LOW cf_default_table2 ; Load PROM pointer.
462 movwf TBLPTRL,A
463 movlw HIGH cf_default_table2
464 movwf TBLPTRH,A
465 movlw UPPER cf_default_table2
466 movwf TBLPTRU,A
450 467
451 cf_bank2_loop: 468 cf_bank2_loop:
452 ; Did we already read another 32 (decimal) words or double-words ? 469 ; Did we already read another 32 (decimal) words or double-words ?
453 movf TBLPTRL,W 470 movf TBLPTRL,W
454 sublw LOW (cf_default_table3) 471 sublw LOW (cf_default_table3)