Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/temp_extrema.asm @ 703:39e02673db4c
some cleanup
author | heinrichsweikamp |
---|---|
date | Sun, 17 Mar 2013 13:33:17 +0100 |
parents | 2144f19fa1eb |
children | c50296c3059e |
comparison
equal
deleted
inserted
replaced
702:e6ff73e88e45 | 703:39e02673db4c |
---|---|
22 ; last updated: 05/15/08 | 22 ; last updated: 05/15/08 |
23 ; known bugs: | 23 ; known bugs: |
24 ; ToDo: | 24 ; ToDo: |
25 | 25 |
26 check_temp_extrema: ; called once every minute from Sleeploop, Surfloop and Diveloop | 26 check_temp_extrema: ; called once every minute from Sleeploop, Surfloop and Diveloop |
27 clrf EEADRH | |
27 read_int_eeprom d'54' ; get lowest temperature so far | 28 read_int_eeprom d'54' ; get lowest temperature so far |
28 movff EEDATA,sub_b+0 | 29 movff EEDATA,sub_b+0 |
29 read_int_eeprom d'55' | 30 read_int_eeprom d'55' |
30 movff EEDATA,sub_b+1 | 31 movff EEDATA,sub_b+1 |
31 SAFE_2BYTE_COPY temperature,sub_a | 32 SAFE_2BYTE_COPY temperature,sub_a |