comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 167:cb055a7d75f3

+ Use overlay local vars. + Make all private functions static. + Merge calc_tissue 2sec and 1min + Merge sim_tissue 1min and 10min + Expose basic display utilities for c-code. + Prepare stand-alone utilities for p2_main.c testing platform. + New c utility: int read_custom_function(cf#)
author JeanDo
date Mon, 24 Jan 2011 23:31:57 +0100
parents 8b5b848db4cd
children 494587193f5d
comparison
equal deleted inserted replaced
166:80de93d72a17 167:cb055a7d75f3
26 ; 2011-01-04 [jDG] Saturation graphs in customview divemode 26 ; 2011-01-04 [jDG] Saturation graphs in customview divemode
27 ; 27 ;
28 ; known bugs: 28 ; known bugs:
29 ; ToDo: More comments 29 ; ToDo: More comments
30 30
31 global PLED_divemask_color
31 PLED_divemask_color: 32 PLED_divemask_color:
32 GETCUSTOM8 d'36' ; Divemask output color 33 GETCUSTOM8 d'36' ; Divemask output color
33 bra PLED_standard_color_0 34 bra PLED_standard_color_0
34 35
36 global PLED_warnings_color
35 PLED_warnings_color: 37 PLED_warnings_color:
36 GETCUSTOM8 d'37' ; Warnings output color 38 GETCUSTOM8 d'37' ; Warnings output color
37 bra PLED_standard_color_0 39 bra PLED_standard_color_0
38 40
41 global PLED_standard_color
39 PLED_standard_color: 42 PLED_standard_color:
40 GETCUSTOM8 d'35' ; Standard output color 43 GETCUSTOM8 d'35' ; Standard output color
41 PLED_standard_color_0: ; Common entry point 44 PLED_standard_color_0: ; Common entry point
42 movwf oled1_temp ; copy 45 movwf oled1_temp ; copy
43 movlw d'0' 46 movlw d'0'
131 134
132 PLED_color_code_gaslist1: 135 PLED_color_code_gaslist1:
133 call PLED_warnings_color 136 call PLED_warnings_color
134 return 137 return
135 138
136
137 PLED_color_code_ceiling: 139 PLED_color_code_ceiling:
138 GETCUSTOM8 d'40' ; =1: Warn at all? 140 GETCUSTOM8 d'40' ; =1: Warn at all?
139 movwf lo 141 movwf lo
140 movlw d'1' 142 movlw d'1'
141 cpfseq lo ; =1? 143 cpfseq lo ; =1?