comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 204:aad4f6e25c2d

fix in logbook detail view
author heinrichsweikamp
date Fri, 18 Feb 2011 08:29:14 +0100
parents f5e9db793dd3
children cdba979821ee
comparison
equal deleted inserted replaced
203:2d9af08ed0ac 204:aad4f6e25c2d
384 DISPLAYTEXT .87 ; Depth 384 DISPLAYTEXT .87 ; Depth
385 call PLED_standard_color 385 call PLED_standard_color
386 return 386 return
387 387
388 PLED_clear_customview_divemode: 388 PLED_clear_customview_divemode:
389 WIN_BOX_BLACK .168, .239, .90, .159 389 WIN_BOX_BLACK .168, .239, .90, .159 ;top, bottom, left, right
390 return 390 return
391 391
392 PLED_clear_customview_surfmode: 392 PLED_clear_customview_surfmode:
393 WIN_BOX_BLACK .25, .121, .82, .159 393 WIN_BOX_BLACK .25, .121, .82, .159 ;top, bottom, left, right
394 return 394 return
395 395
396 PLED_clear_decoarea: 396 PLED_clear_decoarea:
397 WIN_BOX_BLACK .54, .168, .90, .159 397 WIN_BOX_BLACK .54, .168, .90, .159 ;top, bottom, left, right
398 return 398 return
399 399
400 PLED_display_ndl_mask: 400 PLED_display_ndl_mask:
401 ; Clear Dekostop and Dekosum 401 ; Clear Dekostop and Dekosum
402 rcall PLED_clear_decoarea 402 rcall PLED_clear_decoarea
565 WIN_TOP .90 565 WIN_TOP .90
566 WIN_LEFT .0 566 WIN_LEFT .0
567 bcf pled_velocity_display 567 bcf pled_velocity_display
568 bra PLED_display_clear_common_y1 568 bra PLED_display_clear_common_y1
569 569
570 PLED_display_wait_clear 570 PLED_display_wait_clear:
571 movlw d'6' 571 WIN_BOX_BLACK .0, .25, .0, .159 ;top, bottom, left, right
572 movwf temp1 572 return
573 WIN_TOP .2
574 WIN_LEFT .115
575 bra PLED_display_clear_common_y1
576 573
577 PLED_display_clear_common_y2: ; Clears with y-scale=2 574 PLED_display_clear_common_y2: ; Clears with y-scale=2
578 WIN_FONT FT_MEDIUM 575 WIN_FONT FT_MEDIUM
579 bra PLED_display_clear_common1 576 bra PLED_display_clear_common1
580 577
714 711
715 712
716 PLED_logbook_cursor: 713 PLED_logbook_cursor:
717 714
718 PLED_menu_cursor: 715 PLED_menu_cursor:
719 WIN_BOX_BLACK .35, .239, .0, .16 716 WIN_BOX_BLACK .35, .239, .0, .16 ;top, bottom, left, right
720 717
721 WIN_LEFT .0 718 WIN_LEFT .0
722 WIN_FONT FT_SMALL 719 WIN_FONT FT_SMALL
723 WIN_INVERT .0 ; Init new Wordprocessor 720 WIN_INVERT .0 ; Init new Wordprocessor
724 call PLED_standard_color 721 call PLED_standard_color
1467 PLED_active_gas_surfmode_exit: 1464 PLED_active_gas_surfmode_exit:
1468 ; WIN_FRAME_BLACK .122, .175, .82, .159 1465 ; WIN_FRAME_BLACK .122, .175, .82, .159
1469 return 1466 return
1470 1467
1471 PLED_confirmbox: 1468 PLED_confirmbox:
1472 WIN_BOX_BLACK .68, .146, .34, .101 1469 WIN_BOX_BLACK .68, .146, .34, .101 ;top, bottom, left, right
1473 WIN_FRAME_STD .70, .144, .35, .100 1470 WIN_FRAME_STD .70, .144, .35, .100
1474 1471
1475 DISPLAYTEXT .143 ; Confirm: 1472 DISPLAYTEXT .143 ; Confirm:
1476 DISPLAYTEXT .145 ; Cancel 1473 DISPLAYTEXT .145 ; Cancel
1477 DISPLAYTEXT .146 ; OK! 1474 DISPLAYTEXT .146 ; OK!
1478 1475
1479 movlw d'1' 1476 movlw d'1'
1480 movwf menupos 1477 movwf menupos
1481 1478
1482 PLED_confirmbox2: 1479 PLED_confirmbox2:
1483 WIN_BOX_BLACK .96, .143, .39, .51 1480 WIN_BOX_BLACK .96, .143, .39, .51 ;top, bottom, left, right
1484 1481
1485 movff menupos,temp1 1482 movff menupos,temp1
1486 movlw d'96' 1483 movlw d'96'
1487 dcfsnz temp1,F 1484 dcfsnz temp1,F
1488 movlw d'96' 1485 movlw d'96'
1668 depth_less_10mtr: 1665 depth_less_10mtr:
1669 PUTC ' ' 1666 PUTC ' '
1670 return 1667 return
1671 1668
1672 PLED_clear_depth ; No, clear depth area and set flag 1669 PLED_clear_depth ; No, clear depth area and set flag
1673 WIN_BOX_BLACK .24, .90, .0, .90 1670 WIN_BOX_BLACK .24, .90, .0, .90 ;top, bottom, left, right
1674 bsf depth_greater_100m ; Set Flag 1671 bsf depth_greater_100m ; Set Flag
1675 return 1672 return
1676 1673
1677 PLED_desaturation_time: 1674 PLED_desaturation_time:
1678 movff int_O_desaturation_time+0,lo 1675 movff int_O_desaturation_time+0,lo
1979 call PLED_convert_date ; converts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2 1976 call PLED_convert_date ; converts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2
1980 call word_processor 1977 call word_processor
1981 return 1978 return
1982 1979
1983 PLED_menu_clear: 1980 PLED_menu_clear:
1984 WIN_BOX_BLACK .0, .26, .65, .100 1981 WIN_BOX_BLACK .0, .26, .65, .100 ;top, bottom, left, right
1985 return 1982 return
1986 1983
1987 PLED_max_pressure: 1984 PLED_max_pressure:
1988 ostc_debug 'p' ; Sends debug-information to screen if debugmode active 1985 ostc_debug 'p' ; Sends debug-information to screen if debugmode active
1989 movff max_pressure+0,lo 1986 movff max_pressure+0,lo
2031 bcf ignore_digit4 2028 bcf ignore_digit4
2032 WIN_FONT FT_SMALL 2029 WIN_FONT FT_SMALL
2033 return 2030 return
2034 2031
2035 PLED_clear_maxdepth: 2032 PLED_clear_maxdepth:
2036 WIN_BOX_BLACK .184, .215, .0, .41 2033 WIN_BOX_BLACK .184, .215, .0, .41 ;top, bottom, left, right
2037 bsf maxdepth_greater_100m ; Set Flag 2034 bsf maxdepth_greater_100m ; Set Flag
2038 return 2035 return
2039 2036
2040 PLED_divemins: 2037 PLED_divemins:
2041 btfsc menubit ; Divemode menu active? 2038 btfsc menubit ; Divemode menu active?
2096 WIN_FONT FT_SMALL 2093 WIN_FONT FT_SMALL
2097 return 2094 return
2098 2095
2099 PLED_apnoe_clear_surface: 2096 PLED_apnoe_clear_surface:
2100 ; Clear Surface timer.... 2097 ; Clear Surface timer....
2101 WIN_BOX_BLACK .60, .119, .90, .159 2098 WIN_BOX_BLACK .60, .119, .90, .159 ;top, bottom, left, right
2102 return 2099 return
2103 2100
2104 2101
2105 PLED_display_apnoe_descent: 2102 PLED_display_apnoe_descent:
2106 call PLED_divemask_color ; Set Color for Divemode mask 2103 call PLED_divemask_color ; Set Color for Divemode mask
2593 2590
2594 bcf leftbind 2591 bcf leftbind
2595 return ; no, return 2592 return ; no, return
2596 2593
2597 PLED_clear_divemode_menu: 2594 PLED_clear_divemode_menu:
2598 WIN_BOX_BLACK .0, .168, .82, .160 2595 WIN_BOX_BLACK .0, .168, .82, .160 ;top, bottom, left, right
2599 return 2596 return
2600 2597
2601 PLED_divemenu_cursor: 2598 PLED_divemenu_cursor:
2602 ostc_debug 'l' ; Sends debug-information to screen if debugmode active 2599 ostc_debug 'l' ; Sends debug-information to screen if debugmode active
2603 2600
2604 WIN_BOX_BLACK .0, .150, .85, .95 2601 WIN_BOX_BLACK .0, .150, .85, .95 ;top, bottom, left, right
2605 2602
2606 WIN_TOP .0 2603 WIN_TOP .0
2607 WIN_LEFT .85 2604 WIN_LEFT .85
2608 WIN_FONT FT_SMALL 2605 WIN_FONT FT_SMALL
2609 WIN_INVERT .0 ; Init new Wordprocessor 2606 WIN_INVERT .0 ; Init new Wordprocessor