comparison src/tft_outputs.asm @ 248:afe73e1a0181

support hardware_flag for all possible hardware combinations
author heinrichsweikamp
date Mon, 16 Mar 2015 15:58:51 +0100
parents 5968af2839a4
children 94bf757690cf
comparison
equal deleted inserted replaced
247:5968af2839a4 248:afe73e1a0181
1502 movff compass_heading_shown+1,hi 1502 movff compass_heading_shown+1,hi
1503 bcf STATUS,C 1503 bcf STATUS,C
1504 rrcf hi,F 1504 rrcf hi,F
1505 rrcf lo,F ; /2 -> heading 0-179 in lo 1505 rrcf lo,F ; /2 -> heading 0-179 in lo
1506 1506
1507 ; Debug 1507 ;; Debug
1508 WIN_TINY .0,.71 1508 ; WIN_TINY .0,.71
1509 output_8 1509 ; output_8
1510 STRCAT_PRINT " " 1510 ; STRCAT_PRINT " "
1511 ; Debug 1511 ;; Debug
1512 1512
1513 ; With 60° shown, left border is heading-30° or lo - 15 1513 ; With 60° shown, left border is heading-30° or lo - 15
1514 movlw .15 1514 movlw .15
1515 subwf lo,W 1515 subwf lo,W
1516 btfss STATUS,C ; <0? 1516 btfss STATUS,C ; <0?
1517 addlw .180 ; Yes, adjust value 1517 addlw .180 ; Yes, adjust value
1518 movwf lo ; lo has now left border of graphic in 0-179 1518 movwf lo ; lo has now left border of graphic in 0-179
1519 1519
1520 ; Debug 1520 ;; Debug
1521 WIN_TINY .0,.85 1521 ; WIN_TINY .0,.85
1522 output_8 1522 ; output_8
1523 STRCAT_PRINT " " 1523 ; STRCAT_PRINT " "
1524 ; Debug 1524 ;; Debug
1525 1525
1526 ; Draw marks (left border of graphic is in lo) 1526 ; Draw marks (left border of graphic is in lo)
1527 ; WIN_BOX_BLACK dive_compass_graph_row+.1,dive_compass_graph_row+dive_compass_graph_height-.1,dive_compass_graph_left,dive_compass_graph_right-.2 1527 ; WIN_BOX_BLACK dive_compass_graph_row+.1,dive_compass_graph_row+dive_compass_graph_height-.1,dive_compass_graph_left,dive_compass_graph_right-.2
1528 ; WIN_FRAME_STD dive_compass_graph_row, dive_compass_graph_row+dive_compass_graph_height,dive_compass_graph_left-.1,dive_compass_graph_right-.1 1528 ; WIN_FRAME_STD dive_compass_graph_row, dive_compass_graph_row+dive_compass_graph_height,dive_compass_graph_left-.1,dive_compass_graph_right-.1
1529 movlw dive_compass_graph_row+.1 1529 movlw dive_compass_graph_row+.1
1752 TFT_debug_output: 1752 TFT_debug_output:
1753 return 1753 return
1754 WIN_TINY .80,.0 1754 WIN_TINY .80,.0
1755 call TFT_standard_color 1755 call TFT_standard_color
1756 lfsr FSR2,buffer 1756 lfsr FSR2,buffer
1757 movff hud_status_byte,lo 1757 movff hardware_flag,lo
1758 output_8 1758 output_8
1759 STRCAT_PRINT "" 1759 STRCAT_PRINT ""
1760 return 1760 return
1761 1761
1762 global TFT_divetimeout ; Show timeout counter 1762 global TFT_divetimeout ; Show timeout counter