Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu_reset.asm @ 361:88660a400338 64kByte Logbook
Updated 64K logbook to changeset 360.
author | JeanDo |
---|---|
date | Wed, 08 Jun 2011 01:37:14 +0200 |
parents | 544a96faa9f3 f49d6f0fc870 |
children | 6ee9c849ad92 |
comparison
equal
deleted
inserted
replaced
357:562f1bc79f3c | 361:88660a400338 |
---|---|
63 else | 63 else |
64 ; Basic sanity check for 8bit values: | 64 ; Basic sanity check for 8bit values: |
65 if HIGH(default) > 0 | 65 if HIGH(default) > 0 |
66 error CF#v(CFn) "8bit default too big: ", default | 66 error CF#v(CFn) "8bit default too big: ", default |
67 endif | 67 endif |
68 if HIGH(min) > 0 | 68 if type & CF_NEG |
69 error CF#v(CFn) "8bit min too big: ", min | 69 if HIGH(-min) != 0 |
70 endif | 70 error CF#v(CFn) "8bit negativ min too big: ", min |
71 if HIGH(max) > 0 | 71 endif |
72 else | |
73 if HIGH(min) != 0 | |
74 error CF#v(CFn) "8bit min too big: ", min | |
75 endif | |
76 endif | |
77 if HIGH(max) != 0 | |
72 error CF#v(CFn) "8bit max too big: ", max | 78 error CF#v(CFn) "8bit max too big: ", max |
73 endif | 79 endif |
74 if ((type)==CF_BOOL) && ( (default)>1 ) | 80 if ((type)==CF_BOOL) && ( (default)>1 ) |
75 error CF#v(CFn) "BOOL default too big: ", default | 81 error CF#v(CFn) "BOOL default too big: ", default |
76 endif | 82 endif |
81 ifdef NO_CF_TYPES | 87 ifdef NO_CF_TYPES |
82 DB LOW(default), 0 | 88 DB LOW(default), 0 |
83 else | 89 else |
84 local typeFlags | 90 local typeFlags |
85 typeFlags set type | 91 typeFlags set type |
86 if (min)>0 | 92 if (min)!=0 |
87 typeFlags set type + CF_MIN | 93 typeFlags set type + CF_MIN |
88 endif | 94 endif |
89 if (max)>(min) | 95 if (max)>(min) |
90 typeFlags set typeFlags + CF_MAX | 96 typeFlags set typeFlags + CF_MAX |
91 endif | 97 endif |
161 CF_DEFAULT CF_PERCENT, d'101', d'50', d'101' ; color_warn_cns_percent Warn-% | 167 CF_DEFAULT CF_PERCENT, d'101', d'50', d'101' ; color_warn_cns_percent Warn-% |
162 CF_DEFAULT CF_PERCENT, d'101', d'50', d'101' ; color_warn_gf_percent Warn-% | 168 CF_DEFAULT CF_PERCENT, d'101', d'50', d'101' ; color_warn_gf_percent Warn-% |
163 CF_DEFAULT CF_CENTI, d'161', d'100', d'161' ; color_warn_ppo2_cbar ppO2 warn | 169 CF_DEFAULT CF_CENTI, d'161', d'100', d'161' ; color_warn_ppo2_cbar ppO2 warn |
164 | 170 |
165 CF_DEFAULT CF_INT8, d'15', d'7', d'20' ; color_warn_celocity_mmin warn at xx m/min | 171 CF_DEFAULT CF_INT8, d'15', d'7', d'20' ; color_warn_celocity_mmin warn at xx m/min |
166 CF_DEFAULT CF_SEC, d'42', d'0', d'240' ; time_correction_value_default Adds to Seconds on Midnight | 172 CF_DEFAULT CF_SEC+CF_NEG,d'42', -d'120',d'120' ; time_correction_value_default Adds to Seconds on Midnight |
167 CF_DEFAULT CF_BOOL, d'0', 0, 0 ; CF#49 Show Altimeter in surface mode | 173 CF_DEFAULT CF_BOOL, d'0', 0, 0 ; CF#49 Show Altimeter in surface mode |
168 CF_DEFAULT CF_BOOL, d'0', 0, 0 ; CF50 Show Log-Marker | 174 CF_DEFAULT CF_BOOL, d'0', 0, 0 ; CF50 Show Log-Marker |
169 CF_DEFAULT CF_BOOL, d'1', 0, 0 ; CF51 Show Stopwatch | 175 CF_DEFAULT CF_BOOL, d'1', 0, 0 ; CF51 Show Stopwatch |
170 | 176 |
171 CF_DEFAULT CF_BOOL, d'0', 0, 0 ; CF52 Show Tissue Graph in Divemode | 177 CF_DEFAULT CF_BOOL, d'0', 0, 0 ; CF52 Show Tissue Graph in Divemode |