comparison code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 437:c54d32ec2133

bug-hunt for temperature curve
author heinrichsweikamp
date Sun, 07 Aug 2011 21:01:13 +0200
parents 9597829f1e0c
children ec28f64bfeff
comparison
equal deleted inserted replaced
436:8c0bb701b925 437:c54d32ec2133
707 707
708 ; scale: divide by 256, ie. take just high byte. 708 ; scale: divide by 256, ie. take just high byte.
709 movf xC+1,W 709 movf xC+1,W
710 sublw .75+.153 ; Upside-down: Y = .75 + (.153 - result) 710 sublw .75+.153 ; Upside-down: Y = .75 + (.153 - result)
711 movwf xC+0 711 movwf xC+0
712
713 ; Check limits
714 movlw d'75'
715 movwf xC+1
716 cpfsgt xC+0
717 movff xC+1,xC+0
718
719
712 720
713 movlw color_pink 721 movlw color_pink
714 call PLED_set_color 722 call PLED_set_color
715 723
716 movff logbook_last_tp,xC+1 724 movff logbook_last_tp,xC+1