Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 432:929feb0da4f5
hunting a bug in the logbook (Day 2)
author | heinrichsweikamp |
---|---|
date | Wed, 22 Jun 2016 12:36:15 +0200 |
parents | 9500b2d3e32b |
children | 23b58c4bc6aa |
comparison
equal
deleted
inserted
replaced
431:9500b2d3e32b | 432:929feb0da4f5 |
---|---|
3487 bcf STATUS,C | 3487 bcf STATUS,C |
3488 rrcf WREG ; And divide by 2 | 3488 rrcf WREG ; And divide by 2 |
3489 movwf temp1 | 3489 movwf temp1 |
3490 movlw .20 | 3490 movlw .20 |
3491 subwf temp1,F ; Subtract some offset | 3491 subwf temp1,F ; Subtract some offset |
3492 movff win_width,WREG ; Max width. | 3492 movf win_width+0,W ; Max width. |
3493 cpfslt temp1 ; skip if WREG < win_width | 3493 cpfslt temp1 ; skip if WREG < win_width |
3494 movwf temp1 | 3494 movwf temp1 |
3495 movff temp1,win_bargraph | 3495 movff temp1,win_bargraph |
3496 goto TFT_box ; and return... | 3496 clrf win_width+1 |
3497 goto TFT_box ; and return... | |
3497 | 3498 |
3498 ;============================================================================= | 3499 ;============================================================================= |
3499 ; Draw saturation graph, is surface mode or in dive mode. | 3500 ; Draw saturation graph, is surface mode or in dive mode. |
3500 DISP_tissue_saturation_graph: | 3501 DISP_tissue_saturation_graph: |
3501 ;---- Draw Frame | 3502 ;---- Draw Frame |
3545 bcf STATUS,C | 3546 bcf STATUS,C |
3546 rrcf WREG ; And divide by 4 | 3547 rrcf WREG ; And divide by 4 |
3547 movwf temp1 | 3548 movwf temp1 |
3548 movlw .12 | 3549 movlw .12 |
3549 subwf temp1,F ; Subtract some offset | 3550 subwf temp1,F ; Subtract some offset |
3550 movff win_width,WREG ; Max width. | 3551 movf win_width,W ; Max width. |
3551 cpfslt temp1 ; skip if WREG < win_width | 3552 cpfslt temp1 ; skip if WREG < win_width |
3552 movwf temp1 | 3553 movwf temp1 |
3553 movff temp1,win_bargraph | 3554 movff temp1,win_bargraph |
3554 call TFT_box | 3555 clrf win_width+1 |
3555 return | 3556 goto TFT_box ; and return |
3556 | 3557 |
3557 | 3558 |
3558 global TFT_display_cns | 3559 global TFT_display_cns |
3559 TFT_display_cns: | 3560 TFT_display_cns: |
3560 rcall TFT_warning_set_window ; Sets the row and column for the current warning | 3561 rcall TFT_warning_set_window ; Sets the row and column for the current warning |