comparison src/comm.asm @ 562:8b7ea27ea1fa

seperate desat and sat multipliers for GF and Non-GF modes. Set to 100/100 as default in GF mode
author heinrichsweikamp
date Sat, 03 Feb 2018 15:17:01 +0100
parents b7eb98dbd800
children b455b31ce022
comparison
equal deleted inserted replaced
561:9c54849b8d3b 562:8b7ea27ea1fa
998 dcfsnz WREG 998 dcfsnz WREG
999 movff opt_aGF_high, TXREG1 ; RCREG1=0x28 999 movff opt_aGF_high, TXREG1 ; RCREG1=0x28
1000 dcfsnz WREG 1000 dcfsnz WREG
1001 movff opt_enable_aGF, TXREG1 ; RCREG1=0x29 1001 movff opt_enable_aGF, TXREG1 ; RCREG1=0x29
1002 dcfsnz WREG 1002 dcfsnz WREG
1003 movff char_I_saturation_multiplier, TXREG1; RCREG1=0x2A 1003 movff opt_sat_multiplier_non_gf, TXREG1; RCREG1=0x2A
1004 dcfsnz WREG 1004 dcfsnz WREG
1005 movff char_I_desaturation_multiplier, TXREG1; RCREG1=0x2B 1005 movff opt_desat_multiplier_non_gf, TXREG1; RCREG1=0x2B
1006 dcfsnz WREG 1006 dcfsnz WREG
1007 movff opt_last_stop, TXREG1 ; RCREG1=0x2C 1007 movff opt_last_stop, TXREG1 ; RCREG1=0x2C
1008 dcfsnz WREG 1008 dcfsnz WREG
1009 movff opt_brightness, TXREG1 ; RCREG1=0x2D 1009 movff opt_brightness, TXREG1 ; RCREG1=0x2D
1010 dcfsnz WREG 1010 dcfsnz WREG
1103 movff opt_sim_use_aGF, TXREG1 ; RCREG1=0x5B ## deco calculator enhancement 1103 movff opt_sim_use_aGF, TXREG1 ; RCREG1=0x5B ## deco calculator enhancement
1104 dcfsnz WREG 1104 dcfsnz WREG
1105 movff char_I_altitude_wait, TXREG1 ; RCREG1=0x5C ## no fly altitude 1105 movff char_I_altitude_wait, TXREG1 ; RCREG1=0x5C ## no fly altitude
1106 dcfsnz WREG 1106 dcfsnz WREG
1107 movff opt_enable_IBCD, TXREG1 ; RCREG1=0x5D ## IBCD 1107 movff opt_enable_IBCD, TXREG1 ; RCREG1=0x5D ## IBCD
1108 dcfsnz WREG
1109 movff opt_sat_multiplier_gf, TXREG1; RCREG1=0x5E
1110 dcfsnz WREG
1111 movff opt_desat_multiplier_gf, TXREG1; RCREG1=0x5F
1112
1108 1113
1109 1114
1110 comm_read_abort: 1115 comm_read_abort:
1111 comm_read_done: 1116 comm_read_done:
1112 bra comm_download_mode0 ; Done. Loop with timeout reset 1117 bra comm_download_mode0 ; Done. Loop with timeout reset
1345 dcfsnz WREG 1350 dcfsnz WREG
1346 movff RCREG1, opt_aGF_high ; RCREG1=0x28 1351 movff RCREG1, opt_aGF_high ; RCREG1=0x28
1347 dcfsnz WREG 1352 dcfsnz WREG
1348 movff RCREG1, opt_enable_aGF ; RCREG1=0x29 1353 movff RCREG1, opt_enable_aGF ; RCREG1=0x29
1349 dcfsnz WREG 1354 dcfsnz WREG
1350 movff RCREG1, char_I_saturation_multiplier; RCREG1=0x2A 1355 movff RCREG1, opt_sat_multiplier_non_gf; RCREG1=0x2A
1351 dcfsnz WREG 1356 dcfsnz WREG
1352 movff RCREG1, char_I_desaturation_multiplier; RCREG1=0x2B 1357 movff RCREG1, opt_desat_multiplier_non_gf; RCREG1=0x2B
1353 dcfsnz WREG 1358 dcfsnz WREG
1354 movff RCREG1, opt_last_stop ; RCREG1=0x2C 1359 movff RCREG1, opt_last_stop ; RCREG1=0x2C
1355 dcfsnz WREG 1360 dcfsnz WREG
1356 movff RCREG1, opt_brightness ; RCREG1=0x2D 1361 movff RCREG1, opt_brightness ; RCREG1=0x2D
1357 dcfsnz WREG 1362 dcfsnz WREG
1445 dcfsnz WREG 1450 dcfsnz WREG
1446 movff RCREG1, opt_sim_setpoint_number ; RCREG1=0x59 ## deco calculator enhancement 1451 movff RCREG1, opt_sim_setpoint_number ; RCREG1=0x59 ## deco calculator enhancement
1447 dcfsnz WREG 1452 dcfsnz WREG
1448 movff RCREG1, opt_calc_asc_gasvolume ; RCREG1=0x5A ## bailout gas needs 1453 movff RCREG1, opt_calc_asc_gasvolume ; RCREG1=0x5A ## bailout gas needs
1449 dcfsnz WREG 1454 dcfsnz WREG
1450 movff RCREG1, opt_sim_use_aGF ; RCREG1=0x5B ## deco calculator enhancement 1455 movff RCREG1, opt_sim_use_aGF ; RCREG1=0x5B ## deco calculator enhancement
1451 dcfsnz WREG 1456 dcfsnz WREG
1452 movff RCREG1, char_I_altitude_wait ; RCREG1=0x5C ## no fly altitude 1457 movff RCREG1, char_I_altitude_wait ; RCREG1=0x5C ## no fly altitude
1453 dcfsnz WREG 1458 dcfsnz WREG
1454 movff RCREG1, opt_enable_IBCD ; RCREG1=0x5D ## TBCD 1459 movff RCREG1, opt_enable_IBCD ; RCREG1=0x5D ## TBCD
1460 dcfsnz WREG
1461 movff RCREG1, opt_sat_multiplier_gf ; RCREG1=0x5E
1462 dcfsnz WREG
1463 movff RCREG1, opt_desat_multiplier_gf ; RCREG1=0x5F
1464
1455 1465
1456 1466
1457 comm_write_abort: 1467 comm_write_abort:
1458 ; Check Options, gases and diluents 1468 ; Check Options, gases and diluents
1459 call option_check_all ; Check all options (and reset if not within their min/max boundaries) 1469 call option_check_all ; Check all options (and reset if not within their min/max boundaries)
1545 rcall comm_rs232_wait_tx ; Wait for UART 1555 rcall comm_rs232_wait_tx ; Wait for UART
1546 WIN_SMALL comm_string_column, comm_string_row 1556 WIN_SMALL comm_string_column, comm_string_row
1547 movlw .16 1557 movlw .16
1548 movwf lo ; counter 1558 movwf lo ; counter
1549 comm_send_string_loop: 1559 comm_send_string_loop:
1550 rcall comm_write_get_byte 1560 call comm_write_get_byte
1551 btfsc rs232_recieve_overflow ; Got byte? 1561 btfsc rs232_recieve_overflow ; Got byte?
1552 bra comm_send_string_abort ; No, abort! 1562 bra comm_send_string_abort ; No, abort!
1553 movff RCREG1,POSTINC2 ; Store character 1563 movff RCREG1,POSTINC2 ; Store character
1554 decfsz lo,F 1564 decfsz lo,F
1555 bra comm_send_string_loop 1565 bra comm_send_string_loop