comparison code_part1/OSTC_code_asm_part1/menu_reset.asm @ 27:29341afd2060

NEW: Depth, CNS, GF, ppO2 and Velocity are Color-coded NEW: CF43: Depth [mBar] for color-code display NEW: CF44: CNS [%] for color-code display NEW: CF45: GF [%] for color-code display NEW: CF46: ppO2 [cBar] for color-code display NEW: CF47: Velocity [m/min] for color-code display
author heinrichsweikamp
date Sat, 15 May 2010 17:58:55 +0200
parents 99512945c7a1
children e01e6428d316
comparison
equal deleted inserted replaced
26:8d7af04e0f85 27:29341afd2060
255 #DEFINE color_standard1 d'255' ; 8Bit Color Standard: White 255 #DEFINE color_standard1 d'255' ; 8Bit Color Standard: White
256 #DEFINE color_divemask d'224' ; 8Bit Color Divemask: Red 256 #DEFINE color_divemask d'224' ; 8Bit Color Divemask: Red
257 #DEFINE color_warnings d'224' ; 8Bit Color Warnings: Red 257 #DEFINE color_warnings d'224' ; 8Bit Color Warnings: Red
258 258
259 #DEFINE show_seconds_divemode d'0' ; 1Bit =1 Show the seconds in Divemode 259 #DEFINE show_seconds_divemode d'0' ; 1Bit =1 Show the seconds in Divemode
260 #DEFINE flip_display_default d'0' ; 1Bit =1 Flip Display 260 #DEFINE not_used_cf39_binary d'0' ; 1Bit =1 Flip Display
261 #DEFINE use_ppo2_screen_default d'0' ; 1Bit =1 Use alternative outputs for ppO2 sensor 261 #DEFINE not_used_cf40_binary d'0' ; 1Bit =1 Use alternative outputs for ppO2 sensor
262 #DEFINE replace_temp_with_avr_depth d'0' ; 1Bit =1 Show (resetable) average Depth instead of temperature 262 #DEFINE start_with_stopwatch d'0' ; 1Bit =1 start with stopwatch
263 #DEFINE blink_gas_divemode d'0' ; 1Bit =1 Show (resetable) average Depth instead of temperature
264
265 #DEFINE color_warn_depth_mBar d'13000' ; 15Bit Warn depths
266 #DEFINE color_warn_cns_percent d'101' ; 8Bit Warn-%
267 #DEFINE color_warn_gf_percent d'101' ; 8Bit Warn-%
268 #DEFINE color_warn_ppo2_cbar d'161' ; 8Bit ppO2 warn
269 #DEFINE color_warn_celocity_mmin d'15' ; 8Bit warn at xx m/min
263 270
264 movlw d'127' ; address of low byte of first custom function 271 movlw d'127' ; address of low byte of first custom function
265 movwf EEADR 272 movwf EEADR
266 clrf hi ; only required once 273 clrf hi ; only required once
267 movlw LOW dive_threshold ; 8Bit value 274 movlw LOW dive_threshold ; 8Bit value
394 rcall reset_customfunction ; saves default and current value 401 rcall reset_customfunction ; saves default and current value
395 402
396 movlw show_seconds_divemode 403 movlw show_seconds_divemode
397 rcall reset_customfunction ; saves default and current value 404 rcall reset_customfunction ; saves default and current value
398 405
399 movlw flip_display_default 406 movlw not_used_cf39_binary
400 rcall reset_customfunction ; saves default and current value 407 rcall reset_customfunction ; saves default and current value
401 408
402 movlw use_ppo2_screen_default 409 movlw not_used_cf40_binary
403 rcall reset_customfunction ; saves default and current value 410 rcall reset_customfunction ; saves default and current value
404 411
405 movlw replace_temp_with_avr_depth 412 movlw start_with_stopwatch
406 rcall reset_customfunction ; saves default and current value 413 rcall reset_customfunction ; saves default and current value
407 414
408 movlw d'0' 415 movlw blink_gas_divemode
409 rcall reset_customfunction ; saves default and current value 416 rcall reset_customfunction ; saves default and current value
410 movlw d'0' 417
411 rcall reset_customfunction ; saves default and current value 418 movlw HIGH color_warn_depth_mBar
412 movlw d'0' 419 movwf hi
413 rcall reset_customfunction ; saves default and current value 420 bsf hi,7 ; 15Bit value
414 movlw d'0' 421 movlw LOW color_warn_depth_mBar
415 rcall reset_customfunction ; saves default and current value 422 rcall reset_customfunction ; saves default and current value
416 movlw d'0' 423
417 rcall reset_customfunction ; saves default and current value 424 movlw color_warn_cns_percent
418 movlw d'0' 425 rcall reset_customfunction ; saves default and current value
419 rcall reset_customfunction ; saves default and current value 426
427 movlw color_warn_gf_percent
428 rcall reset_customfunction ; saves default and current value
429
430 movlw color_warn_ppo2_cbar
431 rcall reset_customfunction ; saves default and current value
432
433 movlw color_warn_celocity_mmin
434 rcall reset_customfunction ; saves default and current value
435
420 movlw d'0' 436 movlw d'0'
421 rcall reset_customfunction ; saves default and current value 437 rcall reset_customfunction ; saves default and current value
422 movlw d'0' 438 movlw d'0'
423 rcall reset_customfunction ; saves default and current value 439 rcall reset_customfunction ; saves default and current value
424 movlw d'0' 440 movlw d'0'