Mercurial > public > hwos_code
diff 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 |
line wrap: on
line diff
--- a/src/tft_outputs.asm Tue Jun 21 17:20:44 2016 +0200 +++ b/src/tft_outputs.asm Wed Jun 22 12:36:15 2016 +0200 @@ -3489,11 +3489,12 @@ movwf temp1 movlw .20 subwf temp1,F ; Subtract some offset - movff win_width,WREG ; Max width. - cpfslt temp1 ; skip if WREG < win_width - movwf temp1 - movff temp1,win_bargraph - goto TFT_box ; and return... + movf win_width+0,W ; Max width. + cpfslt temp1 ; skip if WREG < win_width + movwf temp1 + movff temp1,win_bargraph + clrf win_width+1 + goto TFT_box ; and return... ;============================================================================= ; Draw saturation graph, is surface mode or in dive mode. @@ -3547,12 +3548,12 @@ movwf temp1 movlw .12 subwf temp1,F ; Subtract some offset - movff win_width,WREG ; Max width. + movf win_width,W ; Max width. cpfslt temp1 ; skip if WREG < win_width movwf temp1 movff temp1,win_bargraph - call TFT_box - return + clrf win_width+1 + goto TFT_box ; and return global TFT_display_cns